How do I disable the ALT key

Just started using Construct 2? Post your questions here

Post » Mon Jul 07, 2014 10:57 pm

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.
Last edited by beardedeagle on Tue Jul 08, 2014 12:47 am, edited 2 times in total.
Founder of HeroicTek
HeroicTek.com
Owner of HeroicDomains
HeroicDomains.com
B
21
S
7
G
1
Posts: 157
Reputation: 2,020

Post » Tue Jul 08, 2014 12:45 am

I figured it out:

Condition: On key code pressed (key code 18)
Action: nothing

fix.PNG


Hopefully this will help someone in the future.
You do not have the required permissions to view the files attached to this post.
Founder of HeroicTek
HeroicTek.com
Owner of HeroicDomains
HeroicDomains.com
B
21
S
7
G
1
Posts: 157
Reputation: 2,020

Post » Tue Jul 15, 2014 2:27 am

It helped me. Thanks!
B
18
S
4
G
3
Posts: 39
Reputation: 2,697

Post » Tue Jul 15, 2014 3:11 am

@oldsatchmo

Glad it helped you!
Founder of HeroicTek
HeroicTek.com
Owner of HeroicDomains
HeroicDomains.com
B
21
S
7
G
1
Posts: 157
Reputation: 2,020

Post » Tue Jul 15, 2014 2:34 pm

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
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest