Wait before event happen

Get help using Construct 2

Post » Mon Feb 06, 2012 10:53 pm

I want to do the event to wait about five seconds before anything happens.

So what i should use in event sheet?
Funny question but i dont know how do it because everything does not play at that time which I mean.

What i want?
I want on start of layout wait 5 seconds and before 5 second pass sprite ar sreated in layout but only oncedelgado2012-02-06 22:55:51
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Mon Feb 06, 2012 11:15 pm

Use the compare time condition.
B
44
S
12
G
13
Posts: 628
Reputation: 10,471

Post » Mon Feb 06, 2012 11:17 pm

I was use this this works fine only in his layout. When i start game from title compare time condition dont work well
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Tue Feb 07, 2012 12:37 am

You could use a global variable to store the start time of the layout and do actions after 5 seconds after the layout start like so:

* Global number layoutstart = 0

+System | Start of Layout
--Set layoutstart to time

+System | layoutstart < time-5
--Do stuff
B
79
S
24
G
54
Posts: 4,755
Reputation: 40,773


Return to How do I....?

Who is online

Users browsing this forum: newt and 27 guests