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

#1 2010-07-12 10:24:44

amanitamuscaria
New Scratcher
Registered: 2010-07-12
Posts: 3

if<variable=___>

Hello

I want to make a game in which the level changes when your score gets to a certain point. How could I do this?

Offline

 

#2 2010-07-12 11:30:14

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: if<variable=___>

It is pretty basic, and there are so many ways to do it. Here is one way:

Code:

When flag clicked
  wait until < (variable score) = 50 >
    ...

...and then what ever the next level is, you could change backgrounds and sprites' costumes, show or hide sprites, make sprites go to different locations.....

The list goes on and on. If the score goes up by different increments, you may have to change the 'wait until' script to:

Code:

    wait until < (variable score) > 50 >

Hope this helps you out!

Last edited by coka (2010-07-12 11:30:53)


http://i42.tinypic.com/2rot8c2.png

Offline

 

#3 2010-07-12 13:20:32

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: if<variable=___>

This took me ages to figure out myself, I got kinda annoyed when I couldn't work it out. But then I downloaded a project and understood it.


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

Board footer