Controlling movement by entering how many pixels to move
by Jon Mitchell · in Torque Game Builder · 03/07/2006 (8:13 am) · 4 replies
Hello,
I have been trying to figure out a way to control an object to make it move forward by entering a number or turn by entering a number of degrees, I have not had any luck in finguring out how to set up a control by using the non-traditional bound keys and was wondering if anyone else might have some thoughts?
I have been trying to figure out a way to control an object to make it move forward by entering a number or turn by entering a number of degrees, I have not had any luck in finguring out how to set up a control by using the non-traditional bound keys and was wondering if anyone else might have some thoughts?
#2
03/07/2006 (9:35 am)
Could you elaborate on your thoguts a bit for me? I had already put together a textcontrol for the user to put input into, but I have been unable to get that data to translate to make the box move on the screen.
#3
in the button's command property set the value to something like "updatePlayer();"
then make that function
good luck
03/07/2006 (9:41 am)
Make a button, in the button's command property set the value to something like "updatePlayer();"
then make that function
function updatePlayer(){
%val = TEXTGUINAME.getValue();
//do something with value
}good luck
#4
03/07/2006 (9:44 am)
If you need to know the functions to rotate / move then call $player.dump... where $player is your players handle.
Associate Anthony Rosenbaum