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
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
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