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
114
S
29
G
48
Posts: 1,883
Reputation: 36,605

Post » Mon Feb 06, 2012 11:15 pm

Use the compare time condition.
Passionate developer

If my work helped you to make your project, please consider making a donation :)
B
44
S
12
G
14
Posts: 631
Reputation: 10,987

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
114
S
29
G
48
Posts: 1,883
Reputation: 36,605

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
94
S
33
G
118
Posts: 5,396
Reputation: 75,853


Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot] and 28 guests