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

#1 2009-09-14 17:49:46

JaredxD
Scratcher
Registered: 2009-09-10
Posts: 100+

How do I make my script stop at a certain level?

Ok, in my latest version of Crabberz, someone has said that it would be good to show how many levels are left, and when all the levels are completed, to stop the entire script.

Please help where I put which scripts  smile

Offline

 

#2 2009-09-14 17:59:45

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: How do I make my script stop at a certain level?

Well...

Code:

[When flag clicked]
[wait until <not <(level) = (5)>] < replace the numbers with your level.
[wait unti <(level) = (5)>] < replace the numbers with your level.
[stop all]

Last edited by The-Whiz (2009-09-14 18:00:24)

Offline

 

#3 2009-09-14 18:08:07

JaredxD
Scratcher
Registered: 2009-09-10
Posts: 100+

Re: How do I make my script stop at a certain level?

Could you please show the blocks for them?

Sorry, very noobish.

Offline

 

#4 2009-09-14 18:10:12

deatheater
Scratcher
Registered: 2008-04-11
Posts: 1000+

Re: How do I make my script stop at a certain level?

<when green flag clicked>
<set{ level }to( 1
<wait until><( <{ level }> <=> the number of levels you have )>
<stop all>

Offline

 

#5 2009-09-14 18:12:32

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: How do I make my script stop at a certain level?

<when green flag clicked>
<wait until><not><(<{ level }><=>5)>
<wait until><(<{ level }><=>5)>
<stop all>

Offline

 

#6 2009-09-14 18:16:23

JaredxD
Scratcher
Registered: 2009-09-10
Posts: 100+

Re: How do I make my script stop at a certain level?

Ok. this is done, but it didn't work. It doesnt stop the script or lower the levels as each one goes.
I have got in stage scripts:
When Flag Clicked
set levels to 1
wait until level 7
stop all.

Offline

 

#7 2009-09-14 18:18:37

JaredxD
Scratcher
Registered: 2009-09-10
Posts: 100+

Re: How do I make my script stop at a certain level?

what have I done wrong

Offline

 

#8 2009-09-14 18:34:49

JaredxD
Scratcher
Registered: 2009-09-10
Posts: 100+

Re: How do I make my script stop at a certain level?

[explicative removed by moderator], both of you'rs aint working

Last edited by cheddargirl (2009-09-14 20:34:21)

Offline

 

#9 2009-09-14 20:36:02

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: How do I make my script stop at a certain level?

JaredxD wrote:

[explicative removed by moderator], both of you'rs aint working

Hey, JaredxD, please do not use curse words on the Scratch forums.


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#10 2009-09-14 20:58:03

adriangl
Scratcher
Registered: 2007-07-02
Posts: 1000+

Re: How do I make my script stop at a certain level?

Are you sure you have all of the variables? The scripts are correct, maybe you left out something?


Scratchin' since 2007

Offline

 

#11 2009-09-14 22:39:47

deatheater
Scratcher
Registered: 2008-04-11
Posts: 1000+

Re: How do I make my script stop at a certain level?

JaredxD wrote:

Ok. this is done, but it didn't work. It doesnt stop the script or lower the levels as each one goes.
I have got in stage scripts:
When Flag Clicked
set levels to 1
wait until level 7
stop all.

add this to the script where you change levels

<change{ level }by( 1

, oh and you want the wait until to be 1 bigger then the level you have

Offline

 

#12 2009-09-15 01:36:15

JaredxD
Scratcher
Registered: 2009-09-10
Posts: 100+

Re: How do I make my script stop at a certain level?

deatheater wrote:

JaredxD wrote:

Ok. this is done, but it didn't work. It doesnt stop the script or lower the levels as each one goes.
I have got in stage scripts:
When Flag Clicked
set levels to 1
wait until level 7
stop all.

add this to the script where you change levels

<change{ level }by( 1

, oh and you want the wait until to be 1 bigger then the level you have

Ok.. the wait until is now at 8 instead of 7... Where to I insert the change level by 1 script? As In after what other one that I have.

Offline

 

#13 2009-09-15 02:00:15

deatheater
Scratcher
Registered: 2008-04-11
Posts: 1000+

Re: How do I make my script stop at a certain level?

JaredxD wrote:

deatheater wrote:

JaredxD wrote:

Ok. this is done, but it didn't work. It doesnt stop the script or lower the levels as each one goes.
I have got in stage scripts:
When Flag Clicked
set levels to 1
wait until level 7
stop all.

add this to the script where you change levels

<change{ level }by( 1

, oh and you want the wait until to be 1 bigger then the level you have

Ok.. the wait until is now at 8 instead of 7... Where to I insert the change level by 1 script? As In after what other one that I have.

ok know the script you use to change levels, well put it in that script, at the start

Offline

 

#14 2009-09-15 04:01:21

JaredxD
Scratcher
Registered: 2009-09-10
Posts: 100+

Re: How do I make my script stop at a certain level?

Ok thanks man =]

Offline

 

Board footer