Stop actors from doing there jobs.
mrcameron999
Member Posts: 182
Hello in my game i have it where when a actor collides with another actor -1 of an attribute called lose. Lose is st to 3 and when it gets 0 I interpenetrate the camera to go up. How ever i have another actor that spawn above the first screen in my case 480 and then falls then spawns again the falls again. But when you lose the actor still spawns. I tried doing
When game.lose >= 0 Destroy this actor but that didn't work any ideas of what i could do.
thanks
When game.lose >= 0 Destroy this actor but that didn't work any ideas of what i could do.
thanks
Comments
Hi @mrcameron999
try When game.lose <= 0 Destroy this actor
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Another thing you can try is to add a displayText behavior to one of your actors and select game.lose from the expression editor. Then watch to see if it actually changes to 0 (or negative).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User