I want to create a sort of nest in a game I am making that creates an enemy if there's not an enemy already created from a particular nest. I have pretty much no clue how to go about this. Anybody have any ideas?
Give the nest a private variable, if variable = 0, then create an enemy from it and add 1 to variable.
Thanks alspal. Another thing is how do I tell it to add a new enemy when I kill the enemy it spawned the first time etc?
When an enemy from a particular nest is killed, you can subtract 1 from the nest it spawned from so it goes back to 0 and spawns again--
in order to effectively do this though, you will have to learn about picking!
Thanks aldo for [quote:3kkhhfki]in order to effectively do this though, you will have to learn about picking!
Do you know how I would go about doing this? I'm fairly new to construct.
You can pick an object by creating a condition for picking an object--
http://sourceforge.net/apps/mediawiki/c ... ct_picking
I made a tutorial-like blog post providing an example on how to create such "nests":
We Construct Blog - Forum rescue #003: Respawn an enemy
Hope that is helpful!
Develop games in your browser. Powerful, performant & highly capable.
^ what he said
Thanks that should do the trick.