I'm trying to set up an event to trigger while a monster is not on screen The way I am trying to make it work is by having a condition to spawn the monster ONLY WHEN another monster is not on screen.
And IF there is a monster on the screen the button will instead destroy it
I Tried several methods for making this work.
I grouped all of my monsters into a family and gave it a Boolean for spawned. default is false
I then have two conditions set up for one set of events (Clicking add another condition)
First condition is that there are no monsters spawned
Second condition is when a button is clicked
So In my mind the way this is laid out is (If there are no monsters on screen, and the button is clicked. Spawn a monster)
This should trigger the event to spawn any one of my monsters but it doesn't the screen just stays blank
If I remove the Boolean condition I can spawn an infinite number of monsters but that's not what i want
Rather than use Boolean I tried the same as above with an instance variable swapping between 1 and 0
No luck there either
I think I'm setting these conditions up wrong but cant think of any other way to do it
Here's a screenshot Just in case I'm not being clear