Easy Level Select System with Stars

UtopianGamesUtopianGames Member Posts: 5,692
edited September 2014 in Working with GS (Mac)

I've made a few different level select systems over the years but this is the easiest one yet, thought id share by attaching the file and a quick video…please watch the video to see how easy it is to add more levels.

Release Candidate can be downloaded here… http://gamesalad.com/download/releases

Darren.

«1

Comments

  • AdamgoproAdamgopro Member Posts: 310

    excellent thanks darren i needed this i have a game with 36 levels with 3 stars on each without using tables theres so many attributes!

  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
    edited March 2014

    amazing. thanks darren :)

    edit: :( cannot open? i unzip file and its just like opening up the gamesalad file package contents. i see a .gsuser file, but cannot open?

  • mounted88mounted88 Member Posts: 1,113

    Darren awesome as normal.

    @codemonster are you using the release candidate? Also are you on windows or Mac?

  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078

    @mounted88‌ im using the latest stable build for mac

  • mounted88mounted88 Member Posts: 1,113

    @codemonster I believe you have to be using the release candidate to use this level select. It's not a stable build but it's pretty close. The link is posted above to download it.

  • UtopianGamesUtopianGames Member Posts: 5,692
    edited March 2014

    @CodeMonster Yes its using the new change scene at index a feature only in nightly and RC.

    Index simply counts your scenes from the left to right so index 1 is the 1st scene (title page) index 2 is the 2nd scene (level select).

    We can use an integer to determine what scene to change to now which as you see in the demo above makes it super easy to make a level select system.

    We can use something like change scene at index self.MyLevel+2 now which makes it so easy.

    Darren.

  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078

    @DeepBlueApps‌ what you showed in that video is incredible. all you did was place 4 new actors, copy 4 scenes, add something really quick to the table and its done.

    this method is really going to help with my projects. so if i download the nightly or release versions, will i be able to still use the stable versions of gs?

  • BazookaTimeBazookaTime Member Posts: 1,274

    Awesome!

  • james courtneyjames courtney Member Posts: 13

    very clever code, nice one!

  • UtopianGamesUtopianGames Member Posts: 5,692
    edited March 2014

    @Adamgopro @mounted88 @BazookaTime @james courtney Thanks guys glad you like it.

    Darren.

  • UtopianGamesUtopianGames Member Posts: 5,692
    edited March 2014

    @CodeMonster yes you can still use stable if you download nightly or RC.

    Darren.

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881

    @DeepBlueApps‌ -- Really nice demo! Thanks for posting this!

  • gamestudentgamestudent Member Posts: 504

    Uh... that's great, but I'm still struggling with the whole levels in the first place part. How do you make them?

  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375

    @gamestudent what do you mean when you say levels? Do you mean scenes?

  • UtopianGamesUtopianGames Member Posts: 5,692
    edited March 2014

    @‌RThurman cheers m8

    @gamesstudent explain what your stuck on and we will try and help.

    Darren.

  • gamestudentgamestudent Member Posts: 504

    Well, What I mean is how do I create a level select Menu? Like you have in bumps. so that the levels are locked, and become unlocked after the level before is played.

  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078

    @gamestudent this template will automatically do that for you

  • UtopianGamesUtopianGames Member Posts: 5,692

    Thanks @CodeMonster‌

    Darren.

  • UtopianGamesUtopianGames Member Posts: 5,692
    edited March 2014

    If you want to work out your total stars collected (had a couple of Pm's about this) then use…

    tableColSum( game.Stars ,1,1, tableRowCount( game.Stars ))

    Darren.

  • UtopianGamesUtopianGames Member Posts: 5,692
    edited April 2014

    In case anyone missed it...

    Darren.

  • UtopianGamesUtopianGames Member Posts: 5,692

    @GameStudent PM me if your stuck with anything.

    Darren.

  • jigglybeanjigglybean Member Posts: 1,584

    Great template but need to wait for 0.11.X on windows :(

  • UtopianGamesUtopianGames Member Posts: 5,692

    Im not sure when the windows version will be bought up to par, sorry.

    Darren.

  • UtopianGamesUtopianGames Member Posts: 5,692

    Little bump for the new guys.

    Darren.

  • *Austin*Austin Member Posts: 3

    Hey Darren,

    Download doesn't work? Well it does but can't open it?

    Can you help thanks, on a MAC.

    Thanks
    Austin

  • Andrea_ComisiAndrea_Comisi ItalyMember Posts: 328

    Hi @deepblueapps have you solved the download link error?

  • Andrea_ComisiAndrea_Comisi ItalyMember Posts: 328

    Hi @deepblueapps i'm having many issues downloading some template can you post the jump to kill, the ice slicer and the asteroids template? Plsssssssss T.T

  • UtopianGamesUtopianGames Member Posts: 5,692

    Sorry about that we're having a change around but will be back to normal soon.

    Darren.

  • UtopianGamesUtopianGames Member Posts: 5,692
    edited September 2014

    Link is now live again (remember to change the extension to a gameproj in order for this to work with 0.11.1.11)

    When I get 5 I will change the zip with the 0.11 version.

    Regards,

    Darren.

  • Andrea_ComisiAndrea_Comisi ItalyMember Posts: 328

    Thank you @deepblueapps

This discussion has been closed.