Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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!
Develop games in your browser. Powerful, performant & highly capable.
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!
^ what he said
Thanks that should do the trick.