When the player one or player two's score reaches 5 in my pong game, it changes to a page Congradulating the player (the background is called C for player 1 winner and C2 for player 2 winner). When the screen changes to one of these backgrounds, I want to hide the ping pong paddles and the ball. I don't know how to do this.
Also I want the music that starts at the beginning og level one to stop.
Can someone help me please?
Offline
For the Stage script:
when gf clicked wait until <<(p1score)=(5)> or <(p2score)=(5)> stop all sounds if <(p1score)=(5)> go to background [C v] end if <(p2score)=(5)> go to background [C2 v] end broadcast [score 5 v]Paddle 1 Script:
when i recieve [score 5 v] hidePaddle 2 Script:
when i recieve [score 5 v] hideBall Script:
when I recieve [score 5 v] hideSorry about the red, but those are the block names
Last edited by laptop97_test (2012-02-28 07:42:37)
Offline
Make the points a variable than say:
when gf clicked forever if <{points as a variable}><=>(5) <broadcast[congrats]> end endThen on all the things you want to hide you put:
<when i receive[congrats]> <hide>Sry if the scratch blocks dont work (probably dont
Offline