Use the left and right arrow keys to turn and the forward arrow key to thrust. It demonstrates a space ship moving in frictionless environment. I.e it will carry on heading in the same direction unless you thrust.
Instead of using the pythagoras rule it uses two variables and a THRUST block which has refresh screen turned OFF. This allows you to change the position of the ship and see how much it has moved by taking the difference between its start position and end position. Then this difference is added to two move variables xMove and yMove that keep track of how much it is moving in the X and Y directions. Before putting it back where it was before the move. As this is done with screen refresh off the ship does not move. Finally the actual movement is acheived by adding the xMove to the x_position and the yMove to the y_position. This is done repeatedly meaning the ship continues to drift until the thrust button is pressd when the ship is facing another direction. For example to slow down you need to face the opposite way to which you are moving and thrust. Friction (causing a gradual slowdown is added by including the Friction block as a command inside the forever loop). This multiplies the xMove and Ymove values by 0.99 causing them to gradually get smaller heading towards 0. The smaller the number the faster the ship slows down. so multiplying by 0.97 will slow down a lot faster. This type of effect can also be used for anything representing a slippery surface i.e on Ice.