Stop a Wait

Get help using Construct 2

Post » Thu Jan 31, 2013 3:39 pm

I have a launch button with a set of events attached to it....including a "wait 10 sec". If I want to abort that launch after 5 seconds, how can I do it?

I've tried attaching variable conditions, but the 10 second wait continues to count down and execute the events after it.

I'm stumped! Help!
B
19
S
3
G
2
Posts: 212
Reputation: 4,011

Post » Thu Jan 31, 2013 4:06 pm

Wait is a bit of a funny beast and takes some getting used to.

The easiest thing for you to do is probably to put all your actions after the wait into a "function called" event. This allows you to check your variables *after* the wait using your function event. Then in the event with the wait in it call the function after the wait.Phyvo2013-01-31 16:58:18
B
6
S
1
Posts: 40
Reputation: 917

Post » Thu Jan 31, 2013 4:28 pm

@Phyvo Yes! I had totally avoided functions but that did the trick. Thanks!
B
19
S
3
G
2
Posts: 212
Reputation: 4,011

Post » Sat Jul 19, 2014 11:23 am

Is there an example of this?
I don't understand.

Thanks!
B
9
S
2
Posts: 12
Reputation: 1,125


Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt and 19 guests