Quick question about keyboard events

For questions about using Classic.

Post » Wed Aug 26, 2009 11:02 pm

I can't get the keyboard event to work when certain parameters are met.

eg.

I have a timer that is set to 10 seconds. Then when the timer hits 10 seconds I have a keyboard sub event that lets you press Z however I can't get this to work.

This is the setup

+ - On Timer "timer1"
- On key Z released - Goto layout 1 <This is the sub-event of the timer

Shouldn't that setup check if the timer has been met and then if the "Z" key has been pressed?

Is this possible or is it just me missing something blindingly obvious?

Thanks
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Wed Aug 26, 2009 11:21 pm

The timer event will only run for one frame when it goes off, so you'd have to release Z at the exact moment the timer went off for this to work properly.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Wed Aug 26, 2009 11:29 pm

[quote="linkman2004":3jvy8mfs]The timer event will only run for one frame when it goes off, so you'd have to release Z at the exact moment the timer went off for this to work properly.[/quote:3jvy8mfs]

Ah ok thanks. Should be easy to work around this.

Thank you.
B
46
S
23
G
7
Posts: 459
Reputation: 6,763


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests