How to make certain series of event run for x seconds?

Get help using Construct 2

Post » Sat Mar 14, 2015 2:14 pm

How to make certain series of event run for x seconds?
B
10
S
5
Posts: 220
Reputation: 1,464

Post » Sat Mar 14, 2015 3:00 pm

https://www.scirra.com/manual/124/system-conditions

Time -> Compare Time

You can use this for making a timer.
B
11
S
2
Posts: 213
Reputation: 1,266

Post » Sun Mar 15, 2015 9:22 am

I'm not sure how to use this...
Compare time, isn't it to see how long the game has run since the beginning?

How am I suppose to use it run certain events for x secs?
B
10
S
5
Posts: 220
Reputation: 1,464

Post » Sun Mar 15, 2015 1:43 pm

You could also use the System Condition Every X seconds. Make a variable, for example enemyJumps = 5, then Every X seconds subtract 1 from enemyJumps, with X being 1.0, this means every second enemyJumps gets 1 smaller.
Then you make another condition that compares enemyJumps > 0, if this is true you make an action: sprite enemy jump. With this the enemy sprite would jump 5 times. This was only an example, you can use it in the way you need.
B
11
S
2
Posts: 213
Reputation: 1,266

Post » Sun Mar 15, 2015 11:13 pm

hmm..yes.. I think I can use the idea...thank you.
B
10
S
5
Posts: 220
Reputation: 1,464

Post » Sun Mar 15, 2015 11:53 pm

I think it may be even more easy for you if you use the timer behavior:

https://www.scirra.com/manual/167/timer
B
11
S
2
Posts: 213
Reputation: 1,266


Return to How do I....?

Who is online

Users browsing this forum: Myrmex and 1 guest