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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement