What is the best way to spawn enemies in a platformer.

Get help using Construct 2

Post » Mon Apr 07, 2014 5:36 am

I am looking to spawn enemies in a plaforming game using spawn triggers. I want to spawn multiple at different times through my level.
Anyone have any recommendations?
B
29
S
6
G
1
Posts: 93
Reputation: 3,020

Post » Mon Apr 07, 2014 6:05 am

i would just make a infinite runner but have it as a plat former and have them spawn randomly
[img]imageshack.com/a/img19/5018/sqio.png[/img]
Banned User
B
5
S
1
G
1
Posts: 88
Reputation: 718

Post » Mon Apr 07, 2014 6:38 am

I would have an invisible spawner wherever you want to put it (in Ultima Online for instance, the monster spawners are little stone graphics with properties telling it what to spawn and how many, which is where I got the idea from). For a platformer it's no different. Just have a spawner sprite, and if it's spawned an enemy, have a variable or boolean switch on so it won't spawn any more, and if the enemy spawned is dead, switch the var back off so it can spawn another enemy.
B
25
S
6
G
6
Posts: 265
Reputation: 3,696

Post » Mon Apr 07, 2014 4:26 pm

roracle, I have done that, but i keep having troubles making it work right. At least without me having to make a ton of global variables for each enemy. I have 3 different enemy types that I keep trying to spawn using a spawn trigger and a spawner sprite. I even set up a function that would spawn them but if i want to duplicate it then i have to copy and past it and change the sprite spawner and the spawn trigger every time. Plus I have to change the conditions for the boolean.
B
29
S
6
G
1
Posts: 93
Reputation: 3,020

Post » Mon Apr 07, 2014 4:28 pm

This is what I have so far. Works great for one spawner but not so much if I want more than 1 spawner.
You do not have the required permissions to view the files attached to this post.
B
29
S
6
G
1
Posts: 93
Reputation: 3,020


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests