Making a simple cutscene?

Hi, quick question from a newbie: what's the best way to code a simple cutscene? I just want it to be some intro text followed by a press any key prompt to start the game proper.


I started my game (in progress) in a blank room (no entrances/exits). After I did what I wanted with the opening scene, I ended with a wait on key press script. In the then part of this script I simply moved the player to the starting room of the game.

I can share it with you if you'd like to see it.


Text Adventure:

for the beginning the of the game stuff, there's the built-in 'start' Script Attribute of the 'game' Game Settings Object, which is immediately run/activated/executed at the start of the game:

'game' Game Settings Object -> 'Script' Tab -> 'Start' Script Attribute -> (add your scripts)

example in code:

(in the GUI/Editor's script options, you choose the 'wait for keypress' Script, which is the same as shown below in code. The 'ClearScreen' Script may be a choice in the GUI/Editor's script options, but if not, and if you want to use it, let me know, and I'll help you with how to use it through the GUI/Editor)

<game name="NAME_OF_GAME">
  <attr name="start" type="script">
    msg ("Hi, welcome to my game!")
    wait {
      ClearScreen
    }
  </attr>
</game>

Thanks guys, I got it up and running now.


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums