The project file you need can be found here:

A spaceship shaped like a blob (a blobcraft) takes off from a platform in a remote part of the Sahara Desert on Earth. Its mission is to visit 4 space stations delivering food and supplies. It will then return to Earth in Florida, USA.

Download the project file and save it in a new project folder - do not leave it in the downloads folder of your computer.

Open the file in Adobe Flash Professional.

Open the actionscript panel on the actions layer. You will see that a character called blob is positioned on the stage at x = 500 and y = 325.

You will also see that the xDirection of the blob is 0 and the yDirection is -1.

In the game loop, the xDirection value and the yDirection value are used to make the blob move.

DON'T RUN THE PROGRAM YET!! Which direction do you think the blob will move in.

Run the program. Did you guess right?!

In the game loop, create an if statement which will change the xDirection value to -1 and the yDirection value to 0 if blob.y is equal to 40.

Test your code. The blob should turn left when it reaches the first spacestation.

In the game loop, create an if statement which will change the xDirection value to 0 and the yDirection value to 1 if blob.x is equal to 245.

Test your code. The blob should turn left when it reaches the second spacestation.

In the game loop, create an if statement which will change the xDirection value to -1 and the yDirection value to 0 if blob.x is equal to 245 AND blob.y is equal to 140 - Note: Actionscript uses && which means AND

Test your code. The blob should turn right when it reaches the third spacestation.

In the game loop, create an if statement which will change the xDirection value to 0 and the yDirection value to 1 if blob.x is equal to 30

Test your code. The blob should turn left when it reaches the fourth spacestation.

In the game loop, create an if statement which will change the xDirection value to 0 and the yDirection value to 0 if blob.x is equal to 30 AND blob.y is equal to 325

Test your code. The blob should land safely in Florida!

Extra credit! Can you make the blobcraft return to The Sahara via the 4 spacestations?

Submit your answer!