Is there any code kicking around showing how to draw a sprite along a given angle ?
eg. say I want a sprite to move along a path, 1 pixel at a time, and that path is at 10 degrees - I could use an array full of precalculated values and add these to the x & y or...
...I'm hoping I could use some kind of equation to work it out "on the fly"
Any ideas ?
eg. say I want a sprite to move along a path, 1 pixel at a time, and that path is at 10 degrees - I could use an array full of precalculated values and add these to the x & y or...
...I'm hoping I could use some kind of equation to work it out "on the fly"
Any ideas ?