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
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
hi guys, can you tell me how to count how many of a specific sprite are existing and only create a new one when its 0 ? thanks
mariogamer - Sprites have a built in value called Count that keeps track of how many there are.
So all you have to do is check if it's 0
System->Compare two values->Sprite.Count = 0
Develop games in your browser. Powerful, performant & highly capable.
I have a spawner object that should spawn one instance of a bullet...so how should I proceed ?
System->Compare two values->bullersprite.Count = 0 > spawnerobject spawn missile sprite ???? like that ?
or you could make a trigger..
Sprite isOnScreen (invert it)
this will execute whatever actions when there isn't a sprite on the screen. although this doesn't work if you have sprites off screen and you want to count them in your condition.