I am trying to use a different set of rotation control than most tank games. Instead of using the up/down arrow keys to accelerate and left/right keys to rotate, I want the up/down/left/right arrow keys to make the tank turn in that direction while moving, so the player doesn't have to worry about remembering what direction the tank is facing during a battle. In other words, pressing the down arrow key will make the player rotate to face downward and, at the same time, move forward, so that the whole tank moves downward in a smooth movement. Does anyone know how to implement this?
4-Direction Rotation
Started by CarlosMarti123, Mar 11 2012 08:56 PM
1 reply to this topic
#1
Posted 11 March 2012 - 08:56 PM
#2
Posted 11 March 2012 - 09:59 PM
check out gmlscripts
http://www.gmlscript...oward_direction
should give you what you need
very handy place to check out helpful codes
http://www.gmlscript...oward_direction
should give you what you need
very handy place to check out helpful codes
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











