Hi. I'm not finding some tutorial of this subject in Construct 2. So I wanna know how can I custom the controls of the keyboard for WASD. Please help me. In Construct classic there was a "Application" Stuff that I can't see in Construct 2. I'm new here so please be patient with me.
How can I do it?
Thank you.
Guilherme.
We've added support for custom controls in r51. Should be out on Monday! :)
Select Player
Left bar: 8 Direction: default controls: no
Event sheet: Keyboard: [select key]
add action: simulate control: select direction
<img src="smileys/smiley1.gif" border="0" align="middle" />
hope this helped.
i tried that on mine and it doesnt work :(
parik99, to use custom controlls. Set the default controlls to no in the properties panel. Add the keyboard object then on your event sheet, add the event:
Keyboard.LeftKeyIsDown
->sprite.Simulate(PlatformPressingLeft)
Or what ever objects your using
So I guess I'll have to make my behaviors compatible then?
What version of C2 are you using? the newest one is R77
This is an old thread talking about r51 from August, we're now on r78!
If you want to set up custom controls see this manual entry.
Develop games in your browser. Powerful, performant & highly capable.
You can learn how to use custom controls and more downloading my starter pack, where it is detailed on the code =]
scirra.com/forum/starter-kit-adventure-pack-by-telles0808_topic45674.html
smitchell i already have all of that but it still doesnt move
That did it (add keyboard then add Simulate Control for each key press) thanks.
Great thread!
Just tried doing that. I get hit with a bunch of JavaScript errors. Any way to get past this? I only have Up event set up; the others didn't seem to work well.
Rxanadu: see this manual entry.
Javascript errors are not a normal behavior, are you using custom plugins ?
Be sure to check for errors in browser.
I've been using Opera, which may have some plug-ins that counteract what's going on with the preview. Is there a way to change the browser I preview in without changing my default browser?