How do I spawn something VARIABLE times

Get help using Construct 2

Post » Thu Sep 17, 2015 7:16 pm

So far i have this h t t p : / / i . i m g u r . c o m / G H n H l S j . p n g


But for some reason whenever the timer ticks down to 0 the game freezes and my browser crashes afterwards. Any help would be good, thanks.
B
6
Posts: 12
Reputation: 276

Post » Thu Sep 17, 2015 7:57 pm

add another condition...
System...Trigger once while true
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Thu Sep 17, 2015 8:04 pm

better use the timer behavior for countdowns, not every x seconds (this will introduce errors on your first tick)

spawn something x times:
repeat x times: spawn y

If an interval is supposed to be between the spawns, use the timer behavior once again, start a regular timer, then on timer count down your amount of stuff you still want to spawn and once it reaches zero, stop the regular timer.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788

Post » Thu Sep 17, 2015 8:34 pm

mindfaQ wrote:better use the timer behavior for countdowns, not every x seconds (this will introduce errors on your first tick)

spawn something x times:
repeat x times: spawn y

If an interval is supposed to be between the spawns, use the timer behavior once again, start a regular timer, then on timer count down your amount of stuff you still want to spawn and once it reaches zero, stop the regular timer.



I am afraid i do not understand you, mind giving me step by step instructions, or just the even sheet, please?
B
6
Posts: 12
Reputation: 276

Post » Tue Sep 22, 2015 6:54 pm

Bump, still haven't fixed my problem.
B
6
Posts: 12
Reputation: 276

Post » Tue Sep 22, 2015 7:05 pm

maybe this post will give you some ideas, or maybe not....

viewtopic.php?f=147&t=152946
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892


Return to How do I....?

Who is online

Users browsing this forum: tannerdler and 22 guests