Rotation of object

How can I rotate a sprite over time? I want to have a ball object rotate as it moves along the ground. What I’ve done is to create animations for this, but I was just curious if this could be done using events instead?

Just set the Sprite object in “automatic rotation” mode, and you will be able to change the direction of the sprite from 0 to 360 degrees. ( There are a lot of examples using this, see for instance the racing examples ).

Great, thanks. Exactly what I was looking for. And here I have spent hours and hours trying to get my animations as smooth as possible…