So. I am making the health code of the game. Actually I have set a 3 framed health hearts such as if you lose 1 hp you have 2 remaining and so on.
I've made an item that replenish one heart when the player collides with the item and then destroy it but I wanna make it that if HP is =/> 3 not to destroy the item.
Can't seem to figure out a way to do it. I know is an easy thing but my lack of experience is not helping.
Thanks