O'Reilly logo

Construct Game Development by Daven Bigelow

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — loading and saving levels with events

Now we are going to add the events into our editor to load and save levels to INI files.

  1. Now we can switch over to the Event Sheet Editor to start the events for our editor. Start by creating a Start of layout event to set the INI file to AppPath & "Levels.ini".
  2. Following that, create a sub-event for this to check if the global variable CurrentLevel is Less or equal to LevelINI.ItemValue("Game", "NumCustomLevels").
  3. Create the action Call function of the Function object to call "LoadLevel", a function we'll be using to load the level objects and background.
  4. Next, create a new event with the MouseKeyboard condition Mouse is over object? to check if the mouse is overlapping the EditRegion object. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required