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: