Spawn multiple objects based on a global variable

Get help using Construct 2

Post » Sun Feb 17, 2013 9:12 pm

I'm having a problem with the 'spawn another object' action.
I'm making a game where, everytime you advance in a round, a global variable called 'num_shark' increases by one. At the beginning of the round, a cave spawns 'num_shark' amount of sharks. However, I can't find a way to spawn multiple instances of sharks from the object type 'shark_cave' Is there a way to do this?

Thanks,
Paul
B
3
Posts: 2
Reputation: 279

Post » Sun Feb 17, 2013 9:24 pm

Create an event like this: System>Loop(num_shark) -> shark_cave>spawn(shark)
B
56
S
15
G
10
Posts: 910
Reputation: 11,972

Post » Sun Feb 17, 2013 10:24 pm

[QUOTE=GeometriX] Create an event like this: System>Loop(num_shark) -> shark_cave>spawn(shark)[/QUOTE]

I tried every variation of this possible, but it only spawns one each time...
B
3
Posts: 2
Reputation: 279

Post » Mon Feb 18, 2013 2:45 am

Are all your sharks moving the exact same direction? If so, won't matter how many you spawn since they'll be directly on top of each other and look like one.
B
26
S
8
G
3
Posts: 210
Reputation: 5,973


Return to How do I....?

Who is online

Users browsing this forum: spacedoubt, Yahoo [Bot] and 3 guests