Kenjor97 / KriticGamesProject

2D platform Videogame , side scrolling, cartoon style, set in a medieval world where the protagonist will have to overcome the different obstacles to defeat his enemy
MIT License
6 stars 1 forks source link

Improve Player's Life HUD #49

Closed Jason450 closed 6 years ago

Jason450 commented 6 years ago

The heart sprite has a total of 5 hearts which will be the maxLife if the player collects the life power ups. HeartSprite shows all these hearts, but it should show only the maxLife value of CharacterBehaviour script.

EXPECTED RESULT:

Hide the other hearts with a mask that updates when player collects the life power ups to show these hidden hearts.

Mask behaviour to hide hearts in this script HeartMask.cs

Jason450 commented 6 years ago

Player's Life HUD Improved in this commit https://github.com/Kenjor97/KriticGamesProject/commit/73113c4d47438ef85ba1ce4cfebf6681fa559967