sooo...im having trouble with the stage backgrounds
i have a menu page and instructions page and to start the game you hit the space key...then all of the backgrounds are put on a loop...my question is how to make it so that the loop skips the menu and instructions page because they are only to show at the beginning one time then are not to reappear.....i also have a you win and you lose background at the end depending on whether or not you lose or win....p.s. my game is an arkanoid game if that makes a difference
Offline
Try this:
Make sure that the backgrounds for the menu and the instructions are 1 and 2, and the background for the win and lose are at the end.
Replace costume with background in the scripts below
Insert all of these into the stage:
<when[ space ]clicked>
<switch to costume[ 3
<forever>
<wait( optional )secs>
<next costume>
<if> <( background # <=> the last background you want to show )>
<wait( same as above )secs>
<switch to costume[ 3
<end> end if
<end> end forever
For the win:
<when I receive[ win
<switch to costume[ win
Insert your script here.
For the lose:
<when I receive[ lose
<switch to costume[ lose
Insert your script here
That should do it... Tell me if there's something else wrong.
Background # is an actual block in scratch, but it is not displayed on the forums, so use the block instead of the number.
Regards,
Ralphjos
Last edited by Ralphjos (2009-11-02 06:56:13)
Offline