How do I kill or interupt a 'system wait' instantly?

Get help using Construct 2

Post » Thu Nov 10, 2016 5:32 pm

'System wait' is causing me trouble. Whenever the wait is started I can't interrupt it immediately to stop it from doing the next action. If I have conditions that are supposed to stop them, and they overlap quickly when conditions are met, there seems to be a residual effect still in action due to the 'system wait'.
B
45
S
20
G
6
Posts: 112
Reputation: 6,654

Post » Thu Nov 10, 2016 5:46 pm

You can't. Use a variable as a boolean instead.
Image ImageImage
B
173
S
50
G
194
Posts: 8,569
Reputation: 121,374

Post » Thu Nov 10, 2016 7:54 pm

How do I make a variable boolean act like a system wait?
B
45
S
20
G
6
Posts: 112
Reputation: 6,654

Post » Thu Nov 10, 2016 8:08 pm

Using separate events.
First you toggle the boolean instead of the wait, then while the bool is true run a timer. When the timer runs down toggle another boolean.
If you want to cancel the event, just change the variable.
The timer behavior would simplify that a little.
Image ImageImage
B
173
S
50
G
194
Posts: 8,569
Reputation: 121,374

Post » Thu Nov 10, 2016 9:53 pm

Thank you very much!
B
45
S
20
G
6
Posts: 112
Reputation: 6,654


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests