Let's start by creating a simple life bar (two bars). Remember that the life bar is green or blue, and when you lose life the bar becomes red. Try to create a rectangle of the color you want, create another similar rectangle a bit away in the same front axis, and change its color to red.
- Make a rectangle and duplicate it. Move to the z axis (press Z to snap it), and choose the color for each one, just as shown in the following screenshot:
- Press I (I not L) to insert a key in the first frame, and another again in the hundredth frame, to scale the rectangle. Make the rectangle as tiny as you like in the first frame, and set it to the default rectangle shape in frame 100. See the split images in the following screenshot and observe the difference:
- Insert it in the scene with the player (maybe a whale) and the object with which the collision occurs (a little...