Health bar issue
kajuto
Member Posts: 314
Hi everyone.!
I already made a health bar for my game, also when I collect a poison is a -10 in the health bar when it reach to 0 life . 1) How can I activate a lose scene when the health bar reach to 0 ?
2) when I collect apple is a +10 but how can I set the health bar to a maximum when reach to 200 no matter how many apple I collect when it reach the maximum it won't add more? Because it keep getting wider the health bar
I appreciate it thanks
I already made a health bar for my game, also when I collect a poison is a -10 in the health bar when it reach to 0 life . 1) How can I activate a lose scene when the health bar reach to 0 ?
2) when I collect apple is a +10 but how can I set the health bar to a maximum when reach to 200 no matter how many apple I collect when it reach the maximum it won't add more? Because it keep getting wider the health bar
I appreciate it thanks
Comments
(2) in the player actor add a 2 rules --> when actor overlaps/collide with actor type: apple & when self.health <= 200 ---> change attribute self.health to self.health+10
hope that solves both your problems & best of luck
that way it only adds to the health if its less then its full size
cheers
i do that about the health in the player or in the actor called health bar?
One of these links might work..
_or _
(most helpful for me)
(this one ^ is on how to set maximum for healthbars)
@tahlia.kwan@sydstu.catholic.edu.au This thread is three years old. Please don't post answers to outdated threads.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User