Rotate player and then move forward
by Carlos Beltran · in Torque 3D Professional · 03/02/2011 (12:14 pm) · 2 replies
Hi
I am making a game with a camera in orbit mode, I want the player to rotate when I press a key and then move forward. for example, if I press 'S', the player should rotate and face the camera and then should move forward.
I don't know how to do this, can anyone help me?.
Thanks in advance
I am making a game with a camera in orbit mode, I want the player to rotate when I press a key and then move forward. for example, if I press 'S', the player should rotate and face the camera and then should move forward.
I don't know how to do this, can anyone help me?.
Thanks in advance
#2
http://www.garagegames.com/community/resources/view/20880
It's actually part 2 in a resource set I wrote, but it handles 8-directional movement of the player which I THINK is what you're looking for (part 1 was just before it on the resources page for the camera setup etc. I'm using)
03/07/2011 (11:11 am)
Look at:http://www.garagegames.com/community/resources/view/20880
It's actually part 2 in a resource set I wrote, but it handles 8-directional movement of the player which I THINK is what you're looking for (part 1 was just before it on the resources page for the camera setup etc. I'm using)
Torque 3D Owner Carlos Beltran
http://www.garagegames.com/community/resources/view/9480