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
How can I check that every instance of a sprite is invisible?
How can I check if every instance of a sprite is destroyed?
Develop games in your browser. Powerful, performant & highly capable.
for each sprite - sprite is invisible add 1 to variable.
And to see if they are all destroyed
system compare two values - sprite.count = 0
so if sprite.count is the same as the variable, all sprites are invisible.
All sprites destroyed:
<img src="https://dl.dropboxusercontent.com/u/8367729/construct/pics/allSpritesDestroyed.PNG" border="0" />
All sprites invisible:
<img src="https://dl.dropboxusercontent.com/u/8367729/construct/pics/allSpritesInvisible.PNG" border="0" />