Randomize Scene

ShpintShpint Member Posts: 404
edited November -1 in Working with GS (Mac)
Hi,

I am currently making an app that will have a lot of scenes.
Each scene will have 3 buttons "Previous" "Next" and "Random"
Previous is go to previous scene and vice versa for Next
The question is: How do I go to a random pages? (That is not the menu page)

Thanks

Comments

  • chosenonestudioschosenonestudios Member Posts: 1,714
    Create a attribute game.scene

    When random is pressed change attribute game.scene to random(1,5)

    when attribute game.scene = 1 change to scene 1
    when attribute game.scene = 2 change to scene 2
    when attribute game.scene = 3 change to scene 3
    when attribute game.scene = 4 change to scene 4
    when attribute game.scene = 5 change to scene 5
  • ShpintShpint Member Posts: 404
    will that random the 5 scenes?
    I have over 100 scenes, does this mean that I need to do have the attribute for every scene?
  • firemaplegamesfiremaplegames Member Posts: 3,211
    Yes
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Ouch thats gonna be a big rule for 100 scenes.
  • ShpintShpint Member Posts: 404
    Oh my, that's a whole lot of clicking.
    Any shortcut?
Sign In or Register to comment.