Goal:
Let’s set up the new variable at the beginning of the game so that our animation variable will reset every time the game starts.
Steps:
- Still on the “Sharky” sprite, add the following code.
- From Events, place a when green flag clicked block.
- From Variables place a set to block.
- Change the block to sadAnimationTime and set the number to 0.