What I want is for a player to click on Sprite1 and the game to randomly take them either to Layout1, Layout2 or Layout3.
(Sprite_roll is the name of my instance variable)
Why doesn't this work?:
left button clicked on Sprite1 -- set Sprite_roll to random(3)
Sprite_roll=0 -- go to Layout1
Sprite_roll=1 -- go to Layout2
Sprite_roll=2 -- go to Layout3
but this DOES work:
left button clicked on Sprite1 -- set Sprite_roll to random(10)
Sprite_roll<5 -- go to Layout1
Sprite_roll>5 -- go to Layout2
I'm sure I'm missing something obvious but to me this looks like it should work.
Thanks for any help!