Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Students do not need accounts with us
Our educational partners
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
Hi, I have multiple cloned objects on the layout. I am trying to figure out how once one of these is clicked, they are set to invisible (which i can do) but if any of the cloned objects are already invisible, they are then made visible (so there is only one invisible instance at a time)?
Is there anyway i can do this?
You may need to store the UID of the last invisible instance in a global variable, and 'pick by unique ID'.
Perfect place to use for each.
I would do something like:
On sprite clicked, wait 1 second set opacity to 0
->for each sprite
-->sprite compare opacity <1, sprite set opacity to 100
Develop games in your browser. Powerful, performant & highly capable.
Cheers all. For anyone looking: