Key is down (Alt)

Get help using Construct 2

Post » Wed Feb 26, 2014 7:13 am

Just tried to make a bit of code that would trigger when Alt is pressed, but the engine doesn't seem to let me do so. Is this by design or is it a bug ?
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Wed Feb 26, 2014 7:28 am

Have you tried with "On touched"?
B
17
S
5
G
2
Posts: 173
Reputation: 2,085

Post » Wed Feb 26, 2014 8:09 am

On Touched is not a event that the Keyboard object can do.
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Wed Feb 26, 2014 8:16 am

Sorry I wanted say: on key released...
B
17
S
5
G
2
Posts: 173
Reputation: 2,085

Post » Wed Feb 26, 2014 9:15 am

@emoaeden

you could try this, same problem and this got me around it...
In the window where you select which key to use Hold in CTRL then press ALT, it'll goto CTRL first then it should change to ALT for you
B
9
S
2
Posts: 26
Reputation: 586

Post » Wed Feb 26, 2014 10:23 pm

Ometheu : That did the trick, thanks !
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Thu Feb 27, 2014 12:23 am

:) No worries, glad it helped
B
9
S
2
Posts: 26
Reputation: 586

Post » Thu Feb 27, 2014 8:35 am

Some care might be needed in using alt with (some ?) web browsers.

when I tried something like

when alt key is down ..do something

then it only appeared to work every other press. (No problem in node webkit but chrome didn't like it)

Good luck.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Thu Feb 27, 2014 8:41 am

Yeah, It's not really good practice

Alt key is generally reserved for program functions and the sort i believe, I wouldn't use it for anything public, plus I think on a mac in nodekit it does some weird stuff, so does the Ctrl key aswell I think.
B
9
S
2
Posts: 26
Reputation: 586

Post » Sat Mar 01, 2014 1:22 am

I'm intending to only use the Alt + (Letter) for a the PC export function. [:)]
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Next

Return to How do I....?

Who is online

Users browsing this forum: ultrafop and 11 guests