Create these 3 variables that we will use later in the code. Only have the score checked.
Next, you will need to make a custom block. On your hitbox, go to My Blocks, then select Make a Block.
Make this block called "Flap".
Don't forget to check the run without screen refresh box.
Add this code to the custom block.
Add these codes to your character, then we can test out the first part.
Start your game to test it out!
Your hitbox should jump every time you hit the space bar. Touching the edges will end the game.