rotating it the game engine

hi all, i want to make an object rotate to face the direction that you press but smothly

eg, if its facing forwards and you press the backwards key it will turn 180 degrees, left and right keys 90 to there respective way.

thanks

Here, i made a little demo, but it’s only 4 ways. If you want to add diagonal movement i can do that, but i was do lazy to do it now. It isn’t hard to figure out though.

http://mysite.reblended.com/pooba/blender/demos/4waymovement.blend

Pooba

thanks thats what im trying to do, but when you move from left to down or down to left, it does 270 rotation.

Yes, that’s a game engine bug, and you really can’t get rid of it. You could try some bizzare thing with motion acuators, i think if i spent some time on it i could figure it out.

Pooba