The Spaceship sprite can move and fire ammo at the enemies. To do so, we need to create codes to do the following:
Now we are ready to equip the Spaceship with scripts, so it can be controlled.
To create the script that executes upon game initialization, perform the following steps:
100in the go to x: () y: () block.
The following screenshot shows the final script: