Random spawning

Get help using Construct 2

Post » Wed Jun 20, 2012 5:59 pm

I have 7 different objects at the top of the layout (off screen) labeled Spawner1 - Spawner7. I am trying to have 2 different objects (Goodblock/Badblock) spawn randomly at random(1,3) second intervals. I am having some trouble getting them to spawn at random spawners. Any help?
B
8
S
3
G
2
Posts: 22
Reputation: 2,028

Post » Wed Jun 20, 2012 6:28 pm

its all just guessing about how your doin it without you postin your capx for us to look at
B
13
S
5
G
2
Posts: 306
Reputation: 3,262

Post » Wed Jun 20, 2012 6:52 pm

Lots of ways you could do it. How about this: randomSpawn.capx
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Wed Jun 20, 2012 8:54 pm

Thanks ramones :D I understand how it works now, but what number is dt? Where does it get the number from
B
8
S
3
G
2
Posts: 22
Reputation: 2,028

Post » Wed Jun 20, 2012 10:00 pm

dt is deltatime is a system variable for the time it took to complete the last frame
B
13
S
5
G
2
Posts: 306
Reputation: 3,262

Post » Wed Jun 20, 2012 11:57 pm

Okay :D Thanks for your help!
B
8
S
3
G
2
Posts: 22
Reputation: 2,028


Return to How do I....?

Who is online

Users browsing this forum: makkancs, Marxally and 24 guests