Step 3: Background Reset

Goal:


Our background can now move to the bottom of the screen, but we want it to be able to teleport back to the top and continue forever in a loop like that.

We need to have this block of code compare the background current y position with our screen end point (y of -340) and then send the background back to the top.

Steps:

  1. From Motion, place a round y position block in the left side of the <(Less Than) block.
  2. From Motion, place a go to x/y block.
  3. Set X to 0 and set Y to 463.

Code:


Click to replay