Control
-
I have been looking everywhere and can't figure it out, what are the syntax for the keyboard for controlling joints.
I'm trying to use a and d for turning.
-
Assuming you know about the UI and controllers, the syntax is:
w,a,s,d/Left stick
joy("leftx")
joy("lefty")Arrow keys/Right stick
joy("rightx")
joy("righty")Individual keys (Use q,w,e,r,t,y, etc in place of ...)
key("...")Gamepad buttons (a,x,y,b)
joybutton("...")In your case, you'll want to use joy("leftx"), which is easier than using the individual keys, and lets joypad users control it aswell!
-
@wacov said:
joy("leftx")
You dont need to use joy("leftx"). you can just put leftx. and why do people use " when ' works just aswell and is shorter
-
I use " cos... well, that's better. "..." is a string variable (text), so using " lets me put ' inside it. I show people the joy("...") command because that's the future syntax... it might help stop confusion whenever the switchover is. Also, to me at least, it makes it slightly easier to read, and it makes more sense.
Advertisement