How do I make a multiple spawners

Get help using Construct 2

Post » Thu Oct 22, 2015 12:05 pm

Hello, I am very new at Construct 2 and I've been fooling around with this idea and getting no where.

There are multiple spawners off the screen, and when they spawn the enemy every X seconds the angle is set toward the player and accelerating towards it. I have tried randomly spawning one spawner where every time it spawns a enemy it gets destroyed and creates a new one but it always spawns on screen (which is what I do not want)

If anyone knows how I can make it so there are stationary spawners outside the screen and they randomly spawn enemys at different times that be great!

Thanks!
George
B
3
Posts: 3
Reputation: 181

Post » Thu Oct 22, 2015 12:22 pm

Randomly spawn at different times?

Would something like this work?

system every x seconds : random(0,3)
system pick random instance of spawner
> spawn enemy
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Oct 22, 2015 12:55 pm

@LittleStain so for some reason I can NOT find Pick random instance function anywhere. where is it?
B
3
Posts: 3
Reputation: 181

Post » Thu Oct 22, 2015 1:23 pm

I thought I put it in the example:

System pick random instance

So you can find it under the System-conditions..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Oct 23, 2015 1:09 am

Hey @littleStain, I'm trying out your example and I'm not getting it to work. What do you mean when you say random(0,3)? On a good note I've found the "pick random instance" function. Do you think you can send me a screen shot of what you mean so I can try it out.
B
3
Posts: 3
Reputation: 181

Post » Fri Oct 23, 2015 5:48 am

when I say random(0,3) I mean random(0,3)..

In this example it stands for the amount of seconds, which could be anything between 0 and 3 seconds..
Changing the numbers will change the random time between the spawn-action..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: Klarner, worm1 and 21 guests