Well, I need to see your scripts to help you, so could you show them or upload your project?
With regards,
ErnieParke
Offline
Uses this
broadcast [message v]
Offline
kman1337 wrote:
So, I'm trying to make a Pong game but when it hits the red it doesn't broadcast it. Help
There are several sources to the cause of the problem. First of all, did you put a forever block, like this?
forever//makes the sprite do something over and over again show// This is in a forever block. It means that it will show, continuously without end.If a sprite is told to forever show, but receives a message telling it to hide, it will not hide, because it is told to forever show, so it will continuously show.
repeat until<>//makes the sprite do something continuously UNTIL something happensSo, let's say that you wanted the ball to hide. This is what you could do:
repeat until <touching[red line]>//Makes the sprite check if it is touching the red line move (5) steps//while the sprite is NOT touching the red line, do this end hide //if the sprite is touching the red line, it hides.Another cause is that the broadcast messages are wrong. Let's say that the ball touched the red line. It broadcasted a message.
broadcast [game over! v]But the stage and the other sprites were told to hide if they received this:
when I receive[game over v]Note that the ball had a exclamation mark in the message. The others did not.
Last edited by joshuaho (2013-04-17 14:19:10)
Offline