Step 14 : (Herbert must disappear)
In the Cutscene "herbertgoes" we want Herbert to walk away, we will do this by beaming him into another room.
He shall not exist in the game anymore so we cannot beam him into the first room.
We need a place that the player will never see again and that place is the room "safe".
To be able to beam Herbert into the room "safe" you have to free the walkmap of this room first. Do that!
The cutscene "herbertgoes" looks like this :
  wait(1)
  speech (herbert ; Thanks, now i can fly to disney land!)
  wait(0,5)
  walkto (herbert ; 5;19)
  beamto (herbert ; safe ; 15 ; 15 ; 2)
  setbool (runaround ; false)
The machine is now accessable again and we can finish the game.
Step 15 : (One last thing you have to know about)
I want to show you the feature : Mainscript.
The mainscript is a script that will be processed all the time the game is running (except when a cutscene is running).
In the project setup in the field "MainScript" you can enter the name of the script that will contain the mainscript.
Create a script called "main" and enter the name of it into the project setup. Now enter this into the new script :
  if_keypressed (up)
    stepto (self ; up)
  if_keypressed (down)
    stepto (self ; down)
  if_keypressed (left)
    stepto (self ; left)
  if_keypressed (right)
    stepto (self ; right)
You should be able to controll your character now with the arrow keys on your keyboard (this feature will cause some problems with the door but don't think about it ;)
I only wanted you to know about this feature :P
Next