ID:151335
 
How would you handle the proccess of making a top-down game, with an icon with alot of icon states that needs to be rotated or turned with the saving of the new icon with out causing any type of problems in future development.
The best way to handle it is do all the rotation and have each possible "state" be an icon file. Because I assume you're using degrees, to choose an icon_state based on degree you use this:

icon_state="[round(src.degree/360*number_of_icon_states)]"


Here's an undocumented icon rotation program that I have made for use in Toy Tanks and Rocket Down.
Perhaps you could find some use for it as well.

ROTATE.zip

Good luck! (: