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
98
S
22
G
36
Posts: 1,849
Reputation: 29,404

Post » Mon Feb 06, 2012 11:15 pm

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

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
98
S
22
G
36
Posts: 1,849
Reputation: 29,404

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
82
S
26
G
62
Posts: 4,838
Reputation: 45,216


Return to How do I....?

Who is online

Users browsing this forum: jeffige, revengeracer and 4 guests