How do I Stop Every X Seconds from creating an object

Get help using Construct 2

Post » Sun Apr 13, 2014 7:05 pm

I set an object to be created every 7 seconds on the game screen. When you lose all your lives it sends you to a game over screen. There is a try again button that sends you back to the game screen. The problem is that a second object spawns too quickly after the first one when you choose to retry. How would I fix this? I've tried grouping the every seconds event and deactivating it on the lose condition and game over screen but, it didn't work.
B
24
S
7
G
4
Posts: 68
Reputation: 4,274

Post » Sun Apr 13, 2014 9:18 pm

Use the Timer behaviour on an object instead of 'Every X seconds'. You have complete control over the timing - you don't with 'Every X seconds'.
ImageImageImage
B
71
S
21
G
220
Posts: 3,649
Reputation: 123,727

Post » Sun Apr 13, 2014 11:17 pm

Can you explain that further? I don't really understand
B
24
S
7
G
4
Posts: 68
Reputation: 4,274

Post » Sun Apr 13, 2014 11:46 pm

https://www.scirra.com/manual/167/timer

Start the timer 'On start of layout' and stop it when you move to the Game Over screen. It's (roughly) that easy.
ImageImageImage
B
71
S
21
G
220
Posts: 3,649
Reputation: 123,727

Post » Sun Apr 13, 2014 11:56 pm

I need to create an object every 7 seconds. how can I do that with the timer?
B
24
S
7
G
4
Posts: 68
Reputation: 4,274

Post » Mon Apr 14, 2014 12:38 am

'On timer'
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
21
G
220
Posts: 3,649
Reputation: 123,727

Post » Mon Apr 14, 2014 1:14 am

Thanks for the help!
B
24
S
7
G
4
Posts: 68
Reputation: 4,274


Return to How do I....?

Who is online

Users browsing this forum: apalm1341, blissfulwizard, phoenix1291 and 18 guests