Timer issue

Get help using Construct 2

Post » Fri Dec 02, 2011 8:20 pm

Stupid me again...

Anyone any idea, why this timer event only works first time around?



cpax -> http://dl.dropbox.com/u/51594736/EgonQuest.capx

online -> http://egon.ergonassist.de
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Sat Dec 03, 2011 8:17 am

So could this be a bug? Weishaupt2011-12-03 08:17:44
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Sat Dec 03, 2011 8:50 pm

No it's not, time is the time since the begining of the layout, so yeah, it will be equal to 7 seconds only once... 7 seconds after you launch the layout.

What you need to do is :
[code](event 33) Sack: On Collision with Brille
               -> Sack: Set Stunned to True
               -> Sack: Flash: Flash 0.1 off for 3.0 seconds
               -> System: Wait 3.0 seconds
               -> Sack: Set Stunned to False[/code]

All actions that are put under the Wait action (in the same event) will be triggered after the number of seconds specified.Yann2011-12-03 20:50:57
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Sun Dec 04, 2011 8:14 am

Thanks! I'll try that!

That solved it!Weishaupt2011-12-04 11:20:40
B
42
S
19
G
12
Posts: 723
Reputation: 13,911


Return to How do I....?

Who is online

Users browsing this forum: GSquadron and 29 guests