Sorry if this has been explained elsewhere but I can't find it. I'm not a programmer, and have only had the program a week so I'm stumped. I have an enemy sprite called "SnailEnemy" and a goal where I want them to get to.
How do I:
1) Start of Layout, count the number of "SnailEnemy" to create "SnailEnemyCount" (Instance Variable on Goal)
2) Subtract 1 from "SnailEnemyCount" whenever it collides with "Goal"
3) If "SnailEnemyCount = 0", restart Layout
I could set the SnailEnemyCount manually to the number each layout starts with, but I want the system to handle it instead. When I run the game, on the first restart I get the message:
"The Instance being inspected ('Goal' UID 18) was destroyed"
I don't have any actions that should destroy the Goal so I don't know why it's breaking. It remains visible even while the system continually tries to restart. Thanks for any and all responses.