!!!! Temporary Attribute Help !!!!
Zenith_Gameworks
Member Posts: 310
So in my game, you have to avoid certain falling objects, but once in a while a power up falls that if your actor overlaps/touches it, gives temporary invincibility to that actor. I only want this invincibility to last for say, 10 seconds, and then for the actor to revert back to its original, vulnerable state. I also want this cycle to happen every time the actor overlaps/touches the power up. I made an integer invincibility attribute which says that if the actor touches the powerup, "set invincibility to 1 (original is 0) and tried using a timer, but it doesn't work; the actor becomes invincible permanently after overlap. Any examples of rules and attributes would be greatly appreciated .
Comments
If overlap with power up change game.invincible to 1 then a rule if game.invincible is 1 after 10 seconds change game.invincible to 0.
Darren.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User