Sometimes I run into snags like this in C3 where I feel like my code should be working and isn't. I usually come to find out it's something with how C3 works that I didnt' understand.
Anyway, I have 2 players on screen. Using the same sprites, but they have an instance variable I use to perform checks. This is the first time I have run into an issue as I want to check if both players health are equal to or less than 0. Here is my code that doesn't work.
- System -> Pick sprite by evalutating sprite.actorID = 1
--- System -> sprite.health <= 0
----- System -> Pick sprite by evaluating sprite.actorID = 2
------- System sprite.health <= 0 -----> Browser Alert "Game Over"
In my mind it's picking the sprite for actor 1, checking if it's health is <= 0, if it is, it's then check the same for actor2. If that is also 0, game over.
Thanks.