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

#1 2013-04-18 12:56:47

reis_marzana
New Scratcher
Registered: 2013-04-17
Posts: 3

Level Objectives Help

I need assistance with making a script that only allows the sprite to go to the next level if they have a certain # of points.

I am using broadcast to change in between levels.

Is there a way to make a if broadcast received and jim is touching X , then the background will change( lvl change) but only if he has # of points

{scratchblocks}
When gf clicked
forever if <touching {sprite1}>
       broadcast [graduation}
end

Offline

 

#2 2013-04-18 13:06:14

reis_marzana
New Scratcher
Registered: 2013-04-17
Posts: 3

Re: Level Objectives Help

Figured it out.

i had to add a < ___ and ___> into the forever if block .

it now looks like

{scratchblocks}
When gf clicked
forever if < <touching {sprite1}> and <{(score)>500}> >
       broadcast [graduation}
end

Offline

 

#3 2013-04-18 14:10:06

topazdragonlord
Scratcher
Registered: 2013-02-22
Posts: 500+

Re: Level Objectives Help

reis_marzana wrote:

Figured it out.

i had to add a < ___ and ___> into the forever if block .

it now looks like

{scratchblocks}
When gf clicked
forever if < <touching {sprite1}> and <{(score)>500}> >
       broadcast [graduation}
end

When gf clicked
forever if < <touching [sprite1 v]> and <(score) > 500> >
       broadcast [graduation v]
end
Fixed the scratch-blocks (mostly) for you  smile

Last edited by topazdragonlord (2013-04-18 14:48:41)


http://i45.tinypic.com/idumbk.png

Offline

 

Board footer