Spawn enemies in a random specified location

Get help using Construct 2

Post » Sun Jul 21, 2013 6:49 pm

[QUOTE=smitchell] you can use the choose operator like this:

System.Every 5 Seconds:
     -> System.Create Object Enemy at layer 0 at (Choose(x1, x2, x3, x4), Choose(y1, y2, y3, y4)

You can add as many parameters to the choose operator as you want(I think). Change the x1 to x positions you want obviously.

Hope that helps! [/QUOTE]

I want to ask if there is anyway to spawn enemies at different spawns WITH many duplicated objects. I have created a 'spawn' object, duplicated it all over the map, but the choose function has to have two or more parameters and that 'spawn' object is the only object for spawning. I wonder how can it spawns randomly but on duplicated objects?
B
4
Posts: 5
Reputation: 210

Post » Sun Jul 21, 2013 7:00 pm

@JustForFun119 use the "Pick Random Instance" action instead.
B
40
S
12
G
7
Posts: 603
Reputation: 7,646

Post » Sun Jul 21, 2013 7:34 pm

Thanks for the lightning-quick reply :)
B
4
Posts: 5
Reputation: 210

Previous

Return to How do I....?

Who is online

Users browsing this forum: LeFuji and 23 guests