TopDown view walking?
I was wondering if it would be possible to have a player controlling the character in the same way as in GTA2?
I do know how to just make the character (a blitted image) move horizontal and vertical but not this way.
In a game we developed at school we used some sort of degree system. Making the walking direction change a couple of degrees every press. Problem is we made this game using Disney's Panda3D engine and Python. Since i'm not very good at C++ yet (hope i will be once:p) I would like to know if this is possible and how.
Thx in advance, Peter:tup:
Have a look at the source of MapThis.
I will, thank you very much. I really appreciate your help:tup:
It's a pretty simple concept, something like this: (pseudo code)
player.angle = 0
player.x = 0
playery = 0
if pressing left then
if pressing right then
if pressing up then
player.x += cos(player.angle * (pi / 180) )
player.y += sin(player.angle * (pi / 180) )