Spawn points past edge of layout on unmoving layer

Get help using Construct 2

Post » Wed Jan 01, 2014 9:37 pm

So, in my game, "Psi," I am wanting to randomly spawn enemies just past the edge of the layout on a layer with parallax set to 0 so they won't waste processing power by being in the layout from the beginning. Does this sound like a good idea. Can anyone explain exactly how I'd do this? Thank you.

Here's a demonstration pic of what the layout will look like:

Image
B
20
S
4
Posts: 382
Reputation: 2,984

Post » Wed Jan 01, 2014 11:27 pm

You can make a sprite called "Spawner" or something, just make it a square and put outside the edge of the screen. Click on the Origin button in the sprite editor, and click the + button in the origin window to add an image origin. Call the origin point something like "spawn". Close that and add an event (System -> Every X ticks, maybe?) -> Spawner -> Spawn object at origin point "spawn".Clowerweb2014-01-01 23:28:23
B
15
S
4
G
4
Posts: 11
Reputation: 3,488

Post » Wed Jan 01, 2014 11:32 pm

I would recommend you set the "Spanwner" sprite to Invisible, so you only see it when you are editing your game and in no case (a bug? Who knows) the player can see it.
B
35
S
9
G
3
Posts: 493
Reputation: 4,092


Return to How do I....?

Who is online

Users browsing this forum: ALLMarkMade and 22 guests