Jump to content


Photo

4-Direction Rotation


  • Please log in to reply
1 reply to this topic

#1 CarlosMarti123

CarlosMarti123

    GMC Member

  • GMC Member
  • 7 posts

Posted 11 March 2012 - 08:56 PM

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?
  • 0

#2 Jakyl11

Jakyl11

    GMC Member

  • GMC Member
  • 3109 posts
  • Version:GM:Studio

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
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users