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 — load custom levels

We are now going to modify our game to load levels from the INI file. This will allow us to add and remove levels at will, as well as share them with friends.

  1. Open the BounceBall project again and clone the last level layout using the technique we learned in Chapter 5, Practical Physics.
  2. Name this layout LevelINI and its event sheet to LevelINI Events.
  3. Delete the background image object and create a new one. This time, name it BackgroundINI and use a default image for it (to show the correct image has not loaded, or no image exists). A No Image example is shown in the following screenshot, named BackNA.png:
    Time for action — load custom levels
  4. Now, ...

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