Swipe level selector (Templates)

Discuss Scirra's 2D Asset Store

Post » Tue May 19, 2015 11:19 am



Swipe level selector — Now for sale in the Scirra Store!
https://www.scirra.com/store/royalty-free-game-templates/swipe-level-selector-1006

Swipe level selector is a great way to kick start a game that will have multiple levels. It implements an unlock-level-system, using the new official localStorage plugin. The swipe system let's the user swipe left and right to browse between all levels, with a great iOS native feel to it.

If you want you can easily customize the look and feel by simply replacing images. The event sheets come fully commented, so that it is as easy as possible to understand the code.



Use this topic to leave comments, ask questions and talk about Swipe level selector
B
39
S
9
G
4
Posts: 163
Reputation: 6,516

Post » Fri Sep 18, 2015 8:58 am

Hi, did you include a guide to unlocking the other levels?
Can't seem to find it.
B
5
S
1
Posts: 8
Reputation: 444

Post » Fri Sep 18, 2015 8:24 pm

Hi @redBunny64
In the event sheet called Common there is a function called, UnlockLevel. To unlock a level you will have to call this function and pass in the level you want to unlock. UnlockLevel("1") will unlock level 1.

If you look in the Levels layout you can see that each LevelSelector-object has an instance variable called level. This value has to match the name of an actual Layout, and it is also this value that should be used when unlocking levels.

In the template I have called the levels 1, 2, 3, 4, 5 ... 48 and I unlock them with UnlockLevel("1") and in the project I have Layouts that match these names, as seen in the World1, World2... directories.

Good luck with Swipe level selector and please ask again if I'm unclear :)
B
39
S
9
G
4
Posts: 163
Reputation: 6,516

Post » Wed Jul 19, 2017 10:51 am

Hi I got this template,

and I can't get it to go to a layout i want it to go to its unlocked but can't get to to go to a level how do you change this what and where what are the steps I can't find any documentation on this?
B
5
S
1
Posts: 5
Reputation: 342


Return to Scirra Store

Who is online

Users browsing this forum: No registered users and 2 guests