Discuss Scratch

EarvinKeel
Scratcher
4 posts

help

I'm trying to make a game where a bee named Buzzer has to hit clouds but a problem is that when clouds = 10 it's supposed to broadcast game over but it's not working. Can anyone help me?
The code:
EarvinKeel
Scratcher
4 posts

help

when green flag clicked
if (length of [cloud hits v] :: list) then
broadcast [game over v]
end
and the other:
when I receive [game over v]
forever
switch costume to [costume3 v]
stop [all v]
end
RokCoder
Scratcher
1000+ posts

help

Using your approach, something like the following is what you need -
when green flag clicked
set [clouds v] to (0)
wait until <(clouds) = (10)>
broadcast [game over v]


Scratch dabbling for fun…

EarvinKeel
Scratcher
4 posts

help

it works now!

Powered by DjangoBB