I dont really know any trig or anything so im hoping someone will help me out.
I have a sprite on the screen that rotates.
Here is what om doing:
Will that work or am I doing something wrong? I use allegro so a full circle is 256 degrees... should I switch to radians or is there something wrong with that code snipet? My problem is I get some wierd movements from the sprite.Code:Player1.x += cos(Player1.angle) * 4; Player1.y -= cos(Player1.angle) * 4;