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

#1 2010-10-18 15:36:57

car1977
Scratcher
Registered: 2010-10-17
Posts: 20

Score makes new level.

Hey, i have a score and i want it so when my score reaches 50 my guy broadcasts level to so that it goes on to the next level

Offline

 

#2 2010-10-18 15:51:28

cruelty247
Scratcher
Registered: 2009-07-22
Posts: 100+

Re: Score makes new level.

answer :
when flag clicked
forever
if (score = 50 )
broadcast "insert text here"
----------
other sprite :
when i receive ""
switch to next backround

Offline

 

#3 2010-10-18 15:52:47

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Score makes new level.

Give any sprite or the stage this script and it should work.  smile

[blocks]
<when green flag clicked>
<forever>
<if><( <{ Score }> <>> 49 )>
<set{ score }to( 0
<wait( .5 )secsc>
<change{ level }by( 1
<end>

[/blocks]

The level would probably work best using a variable depending on the sort of game you're making, and the wait .5 seconds is because without it, sometimes 1 or 2 levels may be skipped - Hope this helps  big_smile .

Last edited by 06dknibbs (2010-10-18 15:56:34)


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#4 2010-10-18 19:48:38

car1977
Scratcher
Registered: 2010-10-17
Posts: 20

Re: Score makes new level.

i gt it already so nvm

Offline

 

Board footer