Display Health bar with images

Just wonder how can we display health with an image 1 carrot. Once rabbit is hit, 1/10 of carrot is disappeared.

Thanks

Answers

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    If you want a single carrot that disappears with each hit, you'll need to draw 10 different carrots and change the image (or better yet constrain the image to game.health).

    If you just want 10 carrots and one disappears with each hit, that can be easily done with a single carrot image/actor and the replicate behavior with the amount set to game.health.

    Game.health in this case would be an integer.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.