This is a game building block and all code blocks are commented. This block provides two examples of how to display health & lives status. You can interact with the two examples by changing the two input variable sliders, Health a number between 0 & 50 and lives between 0 & 25. The health and lives are created using the same script copied between the two single sprites. Each sprite is cloned a number of times, for the health 10 times and lives 5 times. Each sprite covers 6 levels (from 0 to 5 inclusive). Each clone knows its position within the health or lives with the first of each being the right most sprite, the second being the one to its left and so on. Each clone reads the whole input variable but concentrates on its associated range updating itself to the corresponding costume.
Drag the sliders from left to right to change the input health and lives.