Step 4: Resetting the Trooper’s Position

Goal:


Whenever the game restarts, we want to reset the StormTrooper to the center bottom position of the game screen.

The coordinates for this is (0, -134)

Steps:

    1. Click on the “Trooper” sprite
    2. From Events, place a When I receive StartGame! clock
    3. From Motion, place a go to x/y block and set to 0 and Y to -134

Code:



Click to replay