ENIGMA Forums

Sharing is caring => Tips, Tutorials, Examples => Topic started by: hpg678 on May 12, 2019, 08:38:50 AM

Title: How to create a Level Select screen
Post by: hpg678 on May 12, 2019, 08:38:50 AM
This is a short tutorial on how to create a level select screen to use in your game. All the levels will be unlocked except the first one. When you have exited that level, it will activate/change a variable that signals the next level to be unlocked. This continues for every level.


In this tutorial, i have also used 'Creation codes' to change the image_index of the Level button sprite as well as track which level we are on.


For those who may not be familiar with them, they hold extra data for a room or object which will run locally in a room. For instance, i used the "Instance Creation Code" for my "spr_level' sprite to  specify which sub-image i want displayed when the game is run.

You cannot create a variable there, however. They must be created beforehand in the 'Create Event' or somewhere else.


The source file is in the EDC section.


Check out the youtube video here : https://youtu.be/MgF66_C50vQ (https://youtu.be/MgF66_C50vQ)