Random Level Select

Player_EPlayer_E Member, PRO Posts: 604
edited November -1 in Working with GS (Mac)

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    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.