This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-11-01 22:13:43

Sweetranger
Scratcher
Registered: 2009-11-01
Posts: 2

Stage problems..plz help!!!

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

 

#2 2009-11-02 06:53:56

Ralphjos
Scratcher
Registered: 2009-10-10
Posts: 100+

Re: Stage problems..plz help!!!

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,
       Ralphj
os

Last edited by Ralphjos (2009-11-02 06:56:13)


http://i33.tinypic.com/2dt3j9j.gif

Offline

 

Board footer