To set up a variable, you first need to go to the variables tab and click the ‘Make a variable’ button. A box will appear asking for the name, then type in a name such as “Health” and set it for all sprites. This will allow it be seen at every stage in the game.
You are now ready to use this variable in your game!
To learn more about how sprites are used watch this video.