How is setting sprite sheet by rotatation done?

How could I set the sprite sheet by rotation?

guessing there isn’t a
[lua]if player.rotation --[[is between 10 and 20 --]] then
show sprite sheet 2
end[/lua] [import]uid: 79135 topic_id: 15250 reply_id: 315250[/import]

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;
[lua]if player.rotation >10 and player.rotation <20 then
sprite:play(“Animation1”)
end[/lua]

Peach :slight_smile:

PS - for info on switching between sprite animations, see the tutorial I mentioned on Techority. It’s pretty good :wink: [import]uid: 52491 topic_id: 15250 reply_id: 56383[/import]

Awesome peach, your ever helpfulness is heavenly.

;D [import]uid: 79135 topic_id: 15250 reply_id: 56396[/import]

Haha, thanks Andrew :smiley: [import]uid: 52491 topic_id: 15250 reply_id: 56480[/import]