toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
Random Level Select
Player_E
Member, PRO
Posts:
604
December 2009
edited November -1
in
Working with GS (Mac)
Comments
firemaplegames
Member
Posts:
3,211
December 2009
Hey,
Create a game attribute (boolean) called randomLevel
use Change Attribute to set game.randomLevel to the expression: random(1,total # of levels)
then you'll need a bunch of rules, one for each level:
when game.randomLevel = 1
Change Scene to "Level 1"
when game.randomLevel = 2
Change Scene to "Level 2"
etc.
etc.
A little tedious, but it works.
Hope this helps!
Sign In
or
Register
to comment.
Comments
Create a game attribute (boolean) called randomLevel
use Change Attribute to set game.randomLevel to the expression: random(1,total # of levels)
then you'll need a bunch of rules, one for each level:
when game.randomLevel = 1
Change Scene to "Level 1"
when game.randomLevel = 2
Change Scene to "Level 2"
etc.
etc.
A little tedious, but it works.
Hope this helps!