Pages: 1
  Print  
Author Topic: How to create a Level Select screen  (Read 119 times)
Offline (Male) hpg678
Posted on: May 12, 2019, 08:38:50 AM

Member
Location: Barbados
Joined: Mar 2017
Posts: 261

View Profile Email
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

« Last Edit: May 13, 2019, 10:02:42 AM by hpg678 » Logged
Hugar
Pages: 1
  Print