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

#1 2008-06-11 09:09:44

osamabindipesh
Scratcher
Registered: 2008-06-11
Posts: 2

Score

Is there a way that if the score is at a certain number, you can change the background? I'm pretty new to scratch so I'm not yet that familiar with it.

Thanks

Offline

 

#2 2008-06-11 09:22:21

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Score

osamabindipesh wrote:

Is there a way that if the score is at a certain number, you can change the background? I'm pretty new to scratch so I'm not yet that familiar with it.

Thanks

Sure - you set the Score up as a variable that all sprites can see (a global variable) then, under the Stage area, set up a script that checks the score and does a background change when it gets above a certain value.

[blocks]
<when green flag clicked>
<wait until><( <{ Score }> <>> 1000 )>
<switch to costume[ Background 2
[/blocks]

except instead of Switch To Costume, you would use Switch To Background (they forgot to make a Switch to Background block here in the Forum).


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer