Step 4: Ship Starting Position and Controls

Goal:


The ship needs to start at the center of the screen whenever we start our game (X=0, Y=0)

The ship also needs to point towards the mouse-pointer wherever it is on the screen.

Steps:

  1. From Motion, place a go to x/y block.
  2. Set X and Y to 0.
  3. From Control, place a forever block.
  4. From Motion, place a point towards block and set it to mouse-pointer.

Code: