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
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
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] endFixed the scratch-blocks (mostly) for you
Last edited by topazdragonlord (2013-04-18 14:48:41)
Offline