Quote Originally Posted by joyrider
Quote Originally Posted by splattergnome
Thanks for the ]Player.x := Player.x + (cos(angle) * speed/5);
Player.y := Player.y + -(sin(angle) * speed/5);[/code]
can somone please post some example code which uses this ? for example just plot a pixel so that when u turn left it turn 1 degree . I've been trying it for so long but i just suck at maths and never managed to get it working right.

thanks
Check out the source code for my rotation tutorial. One of the examples has a moveable tank -- that probably does what you need here. Note that you have to install the CDNDXTimer.pas component first (it's just a timer component) before opening the project.

If you want a more specific example then let me know and I'll whip one up later tonight.