Discuss Scratch

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
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!!!
deck26
Scratcher
1000+ posts

message broadcasting problem

No sign of that script in your project!
lbruns
Scratcher
500+ posts

message broadcasting problem

backSCRATCHer3000 wrote:

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
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!!!
There is no script like that in the project.
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

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.
backSCRATCHer3000
Scratcher
31 posts

message broadcasting problem

yea that worked thanks

Powered by DjangoBB