Game Development Community

Moving a simple dts with arrow keys

by BlewScreen · in Torque Game Engine · 02/19/2009 (3:23 am) · 4 replies

Is it possible to move a simple dts file keybinded by the arrow keys, The object has no animation.

So for example, I'm looking from the player view and there is a spaceship in front of me.

The spaceship will be the "real player without any player function attached" which moves only from left to right and only needs a simple onCollision.

And the player is just there to look around.

So its basicly third person without the camera moving with the player(static camera).

I already found out how to move just a player on arrows keys, but can't find how its linked from default.bind to the player itself.

Ps I know there is a Advanced camera Resource but I think this might be easier.

Also sorry if this is already been asked but couldn't find a topic about it anywhere.

Thx in advance,

BlewScreen

#1
02/19/2009 (1:58 pm)
Yes. Under 'player.cs' I believe you would change the '.dts' file to your space ship, and take out all the animations. You also might have to change the run speed.
#2
02/20/2009 (8:52 am)
Since the keybinds for movement are tied to player objects and/or vehicles, why not simply mount the player to your spaceship so that both are visible in 3rd person mode, and then move the ship through the existing vehicle physics? You'll then only have to change the keybinds for movement to your arrow keys.
#3
02/22/2009 (7:10 am)
Thanks a lot. I will try this and see how it will work for me.
#4
02/22/2009 (8:33 am)
counts you also use some kind of remote mounting code, and switch the control of the object.. much like the old remotes in tribes? that i think would be exactly what you are want, you wouldnt be able to move the "player" while the remoted controlled object is being moved.. but sure should work fine. Its like mounting but just changes which object is controlled.