Game Development Community

Turning

by Chris Sargent · in Torque Game Engine · 09/14/2008 (4:43 pm) · 7 replies

I've been slowly modifying the starter.fps. Today I learnt how to add sound at the start of my main gui and I learnt how to change my movement keys through the default.bind.cs.

I have looked through the file from top to bottom, but did not see what I want. I want to use my left and right arrow keys to turn my character left and right. I don't want to use the mouse for this.

How or where do I look for more information on this?


Thanks!

#1
09/14/2008 (5:01 pm)
Place this in defaultBind.cs with the other movement binds.

moveMap.bind( keyboard, left, turnLeft );
moveMap.bind( keyboard, right, turnRight );
#2
09/14/2008 (5:08 pm)
Thank you very much
#3
09/14/2008 (5:09 pm)
For more you can look for the WoW.Starter.Kit

It has rotation using the 'q' and 'e' keys.

Tony
#4
09/14/2008 (5:15 pm)
Where might I find that at? search turned up nothing :)
#5
09/14/2008 (6:26 pm)
It's actually quite simple.
up
down
right
left

for the arrow keyes, then look at the datablocks above it for what you want to use.
#6
09/14/2008 (6:28 pm)
Search for
How to: WoW style RPG Starter kit

It uses yaw and schedule for Player rotation.

Tony
#7
09/14/2008 (6:30 pm)
Thanks MIke, what I was missing was the turnleft / turnright part of it :)

Thanks Infinitum I'll go look now.