Moving things around

In this lesson, we learn how to move, rotate and scale our sprites.

Manipulating Objects
There are various ways to manipulate Phaser sprites. You can see a full list of these properties here:

http://phaser.io/docs/2.4.2/Phaser.Sprite.html#members

We've already seen how to move objects just by setting their .x and .y properties. Another useful thing to know is rotation. Try:

And see how that looks like. You might also want to try changing the scale.

This will halve the size of our object.

Challenges

 * Can you try to rotate the sprite from the top left instead of from its center?
 * Can you change its alpha (make it invisible?)
 * Can you make the object fall and bounce?