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

#1 2008-06-20 05:54:56

Lisa-999
Scratcher
Registered: 2008-06-20
Posts: 1

Score Changing

Im makeing a trampoling game, you get scores from the judges, i've made it so it adds up but i want it to change level when you get a certain score.

Can anyone help?

Offline

 

#2 2008-06-20 06:24:25

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

Re: Score Changing

Lisa-999 wrote:

Im makeing a trampoling game, you get scores from the judges, i've made it so it adds up but i want it to change level when you get a certain score.

Can anyone help?

<if><(  <{ score }><>> 6 )>
<broadcast[ change level
<end>

I used 6 as an example  smile

Offline

 

#3 2008-06-20 08:09:11

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

Re: Score Changing

As deatheater demonstrates above, using the Broadcast block is probably the best way to do a level change.  After setting up the broadcast, you need to set up some other blocks that respond to the Broadcast message by maybe changing the stage backround or showing sprites that had been hiding before.  For example:

[blocks]
<when I receive[ change level
<switch to costume[ Second Costume
<show>
[/blocks]

Note that "change level" is a broadcast message name and you can actually name it anything you want.


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

Offline

 

#4 2008-06-20 08:36:10

adityasm9
Scratcher
Registered: 2008-03-12
Posts: 100+

Re: Score Changing

deatheater wrote:

Lisa-999 wrote:

Im makeing a trampoling game, you get scores from the judges, i've made it so it adds up but i want it to change level when you get a certain score.

Can anyone help?

<if><(  <{ score }><>> 6 )>
<broadcast[ change level
<end>

I used 6 as an example  smile

using the "or" block you can if score is equal to or greater than 6

Offline

 

Board footer