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
40
S
18
G
5
Posts: 98
Reputation: 5,651

Post » Thu Nov 10, 2016 5:46 pm

You can't. Use a variable as a boolean instead.
Image ImageImage
B
169
S
50
G
170
Posts: 8,292
Reputation: 108,728

Post » Thu Nov 10, 2016 7:54 pm

How do I make a variable boolean act like a system wait?
B
40
S
18
G
5
Posts: 98
Reputation: 5,651

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
169
S
50
G
170
Posts: 8,292
Reputation: 108,728

Post » Thu Nov 10, 2016 9:53 pm

Thank you very much!
B
40
S
18
G
5
Posts: 98
Reputation: 5,651


Return to How do I....?

Who is online

Users browsing this forum: amazingdream and 24 guests