Random Spawning Objects.. how to.. LIMITS?

Get help using Construct 2

Post » Fri Jul 27, 2012 10:18 am

Hey ppl!

I'm making an addicting game like a tower defense, but I have a problem, I know how to spawn objects randomly but a lot of times these objects appears at the "Core" of the game, the "Core" is what you defend, and ofc the objects can't appear at the "Core"..

Don't know if you know what I mean :(
B
17
S
4
G
4
Posts: 104
Reputation: 3,950

Post » Fri Jul 27, 2012 10:29 am

You need to set the position for the newly spawned object.

To make it simple; instead of using the spawn function, use the Create object function
(Action: System -> General).

These two functions do the same thing, but with the "Create Object" action you can set position and layer to where the object should be created.
B
38
S
13
G
9
Posts: 151
Reputation: 8,437

Post » Fri Jul 27, 2012 10:56 am

What I would do is have solid sprites in areas where the objects can not spawn, and have a 'spawner' sprite that changes its position randomly. Then have a condition that says that if the spawner sprite is not overlapping the solid sprite, then create object.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 930
Reputation: 9,358


Return to How do I....?

Who is online

Users browsing this forum: armaldio, ETgirl79, TiagoCesar and 18 guests