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
47
S
20
G
6
Posts: 120
Reputation: 6,718

Post » Thu Nov 10, 2016 5:46 pm

You can't. Use a variable as a boolean instead.
Image ImageImage
B
178
S
50
G
206
Posts: 8,689
Reputation: 127,721

Post » Thu Nov 10, 2016 7:54 pm

How do I make a variable boolean act like a system wait?
B
47
S
20
G
6
Posts: 120
Reputation: 6,718

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
178
S
50
G
206
Posts: 8,689
Reputation: 127,721

Post » Thu Nov 10, 2016 9:53 pm

Thank you very much!
B
47
S
20
G
6
Posts: 120
Reputation: 6,718


Return to How do I....?

Who is online

Users browsing this forum: bioded and 8 guests