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 — creating events for the interface

Now we want to add events to allow the interface controls to perform their intended actions.

  1. First, make a group with the name HUD and description Events for HUD controls.
  2. Create an event in this group to compare that global variable CurrentLevel is Greater than the value of LevelINI.ItemValue("Game", "NumCustomLevels").
  3. Add the action Disable for the btnNext object.
  4. Next, create an action to set the global variable CurrentLevel to LevelINI.ItemValue("Game", "NumCustomLevels") + 1.
  5. Finish the event by adding an action to set the text of txtLevel to "Level: New".
  6. Now create the System event Else.
  7. Use the action Enable for the btnNext object.
  8. Following that, create an action to set the text of txtLevel ...

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