Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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 make it so when I press a button in the game, it spawns a little creature, and after 6 are spawned, it doesn't spawn anymore.
In normal programming I'd use if/else statements, but I have no idea how to do it in Construct 2.
Anyone?
in your game the creature have pathfinding behavior?
Develop games in your browser. Powerful, performant & highly capable.
Might even be easier:
On button pushed
system compare two values : sprite.count < 6
system create sprite
this would limit the amount of sprites to 6, but when one is destroyed another can be made by clicking the button.
Might even be easier: On button pushed system compare two values : sprite.count < 6 > system create sprite this would limit the amount of sprites to 6, but when one is destroyed another can be made by clicking the button.
> system create sprite
This worked, thanks so much