Absolute rotation and movement ?

Blitz3D Forums/Blitz3D Beginners Area/Absolute rotation and movement ?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hello,

I need some help, I got my random model placement and dropping routine to assign the correct locations and stuff, now I have the player in the game as well, but what I am having a problem with is rotating the player on keypresses, I want the player to rotate 90 degree increments like 0, 90, 180, 270 based on the cursor key pressed. Like if they press up rotate to 0, left rotate to position 90, down to 180 and right to 270. I tried it myself, but something is wrong when you press up or down I get Right, and Right and Left arrows are giving me Left facing. ?? No up or Down is working. I am using rotateentity entity, 0, and 0,90,180,270 here for rotation, 0 am I doing this right, I know there is a bug in the logic somewhere, or I don't understand blitzes rotation function. I use the arrow keys to rotate the model, then when the user presses space it moves in the direction it is facing.

Someone please help me, so example code on how to do this would be great. Thanks

I appreciate any and all help you guys could provide, NOTE the initial player direction is being set to 0 on setup.