I have noticed that when I am moving left or right, if the ALT key is hit it causes the object to continue in that direction until the end of the layout when played in browsers (opens the menu options for the browser). Does anyone know how I can stop this from happening withing Construct 2? Otherwise my option is to create a javascript method of capturing the ALT key. If more information is needed I can provide it.
Develop games in your browser. Powerful, performant & highly capable.
I figured it out:
Condition: On key code pressed (key code 18)
Action: nothing
[attachment=0:2jhj0r4a][/attachment:2jhj0r4a]
Hopefully this will help someone in the future.
It helped me. Thanks!
oldsatchmo
Glad it helped you!
This also works for any key control that does an action inside the browser (like space scrolling down the page), so if there are other keys that have problems, you can use this method.
https://www.scirra.com/manual/113/keyboard