I don't have time to explain the way I would do this to you in detail, but here's a very quick description, maybe someone else can go into detail:
- Look up the DynamicSprite-functions (and the DynamicSprite.rotate function particularly) in the manual (you need a version >2.71 for "DynamicSprite.rotate" I believe).
- This function allows you to rotate a sprite by any degree, first try to implement this. Only continue if you have the first part of simple rotation working.
- Then add momentum and mousewheel control. You'll need to play around with this. Just add a value to a variable when turning the mousewheel up and subtract a value to the same variable if turning the mousewheel down.
- Finally rotate the sprite by the variable.
- Then you could add momentum. Just make the variable decrease slowly by itself over time.
- Look up the DynamicSprite-functions (and the DynamicSprite.rotate function particularly) in the manual (you need a version >2.71 for "DynamicSprite.rotate" I believe).
- This function allows you to rotate a sprite by any degree, first try to implement this. Only continue if you have the first part of simple rotation working.
- Then add momentum and mousewheel control. You'll need to play around with this. Just add a value to a variable when turning the mousewheel up and subtract a value to the same variable if turning the mousewheel down.
- Finally rotate the sprite by the variable.
- Then you could add momentum. Just make the variable decrease slowly by itself over time.