Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » message broadcasting problem
- backSCRATCHer3000
-
Scratcher
31 posts
message broadcasting problem
ok so i made this game, you can see it by clicking on my profile its called laser guided rocket launcher. everything is epic except one part… so i said in the rocket sprite
then in the plane sprite i wrote
costume explosion is just something that shows exploding
this doesnt work so someone please help!!!
when green flag clicked
if <touching [(Airplane1) v] ?> then
broadcast [Airplane1 is down! v]
end
then in the plane sprite i wrote
when I receive [Airplane1 is down! v]
switch costume to [explosion v]
costume explosion is just something that shows exploding
this doesnt work so someone please help!!!
- lbruns
-
Scratcher
500+ posts
message broadcasting problem
ok so i made this game, you can see it by clicking on my profile its called laser guided rocket launcher. everything is epic except one part… so i said in the rocket spriteThere is no script like that in the project.when green flag clicked
if <touching [(Airplane1) v] ?> then
broadcast [Airplane1 is down! v]
end
then in the plane sprite i wrotewhen I receive [Airplane1 is down! v]
switch costume to [explosion v]
costume explosion is just something that shows exploding
this doesnt work so someone please help!!!
- Zatnik
-
Scratcher
100+ posts
message broadcasting problem
And even if it was in the project, you'd need a “forever” block around the “if” block.
- backSCRATCHer3000
-
Scratcher
31 posts
message broadcasting problem
whoops! im still new to using scratch blocks in forums
but im pretty sure i just deleted it
but im pretty sure i just deleted it
Last edited by backSCRATCHer3000 (Dec. 31, 2014 19:59:13)
- deck26
-
Scratcher
1000+ posts
message broadcasting problem
@Zatnik is right, you need a forever loop around the if. Otherwise Scratch checks if the rocket is touching the airplane just after the green flag is clicked and never again.
- digthebone
-
Scratcher
500+ posts
message broadcasting problem
when i play that problem never happens, so nothing is wrong.
- Discussion Forums
- » Help with Scripts
-
» message broadcasting problem




