Hi, I'm trying to make a game of luck where you go through a dungion and into rooms but how do I say
<when green flag clicked>
<forever> stage# = pick random 1 to 10
<end>
what I'm trying to say is I want a random stage to appear. please help me!
Offline
You can only make a script like that in the stage's scripts area. The script would look like this:
Offline
But if you want to click on a sprite and have it happen, you need to do this
Sprite Script:
[blocks]
<when[ ]clicked> (or any other controll block)
<broadcast[ random room ]
Stage script:
<when I receive[ random room ]
<repeat until> something happens
<switch to background[<pick random( 1 )to( 10 ))
<end>
Offline