Spawn in random locations

Get help using Construct 2

Post » Fri Dec 02, 2016 11:41 pm

Hi,


I want to spawn different vehicles randomly in 5 different locations. But not repeating the same location for two seconds.

Can someone help me?


Thanks :)
B
16
S
1
Posts: 35
Reputation: 666

Post » Sat Dec 03, 2016 9:17 am

There are many ways to do this

I suggest creating a spawner object that you can move around the canvas however you wish ..either by using the

spawner -->set position to X{random(range)} Y {random(range)} expressions
or pathfinding

or bullet

or whatever you like

and either add a timer, a 'every X seconds' condition

or a system-->wait expression

to the spawn time ..

hope that helps somehow

:geek:
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
35
S
13
G
8
Posts: 318
Reputation: 7,685


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Shenkai the ssj and 24 guests