Collision Detection

One of the most important things you need when making games is knowing when two objects are touching. You need this so that your player doesn't fall through the ground, or to make the coin disappear when the player touches it, and basically any interaction in the game.

Checking for overlap
The easiest way to check if two objects are touching is to use the Phaser.Rectangle.intersects function.

Given two rectangles, this will tell you if they are overlapping. Let's say you have two objects, logo and logo2. The following code checks if they are touching:

You could also create a function checkOverlap to make this easier, like in this example here:

http://phaser.io/examples/v2/sprites/overlap-tween-without-physics