Hello, I’m very new to Game Programming.
Okay I’m trying to make a top down game. But I’m failing at the basics, and I checked all over the web and in JG. But I couldn’t solve my problem.
How do you make the sprite move in the direction its facing?
I can rotate the sprite, but how do I calculate the x,y values so that it moves in the direction its facing.
To give you an idea what I mean: GTA 2
The player can rotate and when you hit W oder “UP” he walks in the direction he is facing.