I am developing a game in which the life system is activated every time there is a collision with the sprite. One life is decremented, and an image of the life icon should become invisible. I wrote the code. It is decrementing the RemainingLife variable, but the hearts always remain visible.
