Level Selector

2

Index

Attached Files

The following files have been attached to this tutorial:

.capx

level-selector.capx

Download now 265.29 KB

Stats

3,647 visits, 6,835 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 10 Aug, 2015. Last updated 19 Feb, 2019

Young lady ask me if I could do tutorial for selecting level depending on game level is successfully be the victor. I am sure many of you thought about it and possibly created is well. I am doing this very basic one. There wont to many lines of code. Just basic but effective one is well.

Let’s start 1st create new project and name it as you like. Let the windows size to be default too. Create background or just use colour like I have in tutorial CAPX. Size for layer can be whatever you wish but, for tutorial use:

1. Set layer size 854, 480

2. 2 set background colour to BLUE

3. Add text header LEVEL SELCTOR

Add sprite and name it btn_Levels where btn stands for BUTTON. Add another frame to btn_Level or use my below:

Set animation speed to zero (0)

Now add 3 more layers and name them each Level_0, Level_1, and level_2 same as I have done. You do need 2 events sheets and name them as I have below:

Now insert new objects Audio, Keyboard, Mouse, Touch and LocalStorage. Once you done that your layout should look something like below:

The other layout looks like this just for tutorial:

Now open you’re EVENT EDITOR and on Level_Select event sheet add these lines below:

Add global variable Level = 0

  • 1 Comments

  • Order by
Want to leave a comment? Login or Register an account!