How could I set the sprite sheet by rotation?
guessing there isn't a
1 2 3 | if player.rotation --[[ is between 10 and 20 --]] then show sprite sheet 2 end |
You could play a set animation, just like, for example, how I have a sprite tutorial where it plays an up animation if the hero is walking up, down if it's walking down, etc.
You could use;
1 2 3 | if player.rotation >10 and player.rotation <20 then sprite:play("Animation1") end |
Awesome peach, your ever helpfulness is heavenly.
;D
Haha, thanks Andrew :D
views:1221 update:2011/10/15 14:27:43