Randomize Scene
Shpint
Member Posts: 404
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
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
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
I have over 100 scenes, does this mean that I need to do have the attribute for every scene?
Any shortcut?