This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2007-06-09 01:40:16

Shanesta
Scratcher
Registered: 2007-05-24
Posts: 6

Is there a way to recieve a broadcast from the Stop button?

I just changed the way my Archerey game does scoring. I basically have a different sprite for each ring that is ghosted out so you can't see it, but you can still detect if the arrow is over it.

the problem is that when you press stop, it turns off the ghosting, and looks ugly.

You can see it here... Just click stop.

http://scratch.mit.edu/projects/Shanesta/9710

I want to be able to hide the sprites when the stop button is pressed.

Anyone know how to do this?

Offline

 

#2 2007-06-09 01:42:08

Shanesta
Scratcher
Registered: 2007-05-24
Posts: 6

Re: Is there a way to recieve a broadcast from the Stop button?

I just did a work around, and changes the look of the scoring sprites to look like the background. This works ok.

Offline

 

#3 2007-06-09 07:18:19

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Is there a way to recieve a broadcast from the Stop button?

Hey, Shanesta! I'm glad you've solved the problem, but in case you're wondering, I know one little trick: make a "Stop" button. When it is clicked, it will broadcast and wait "hide rings" or anything you like and then broadcast 'stop". When the rings receive "hide rings", they hide. When the "stop" button receives "stop", it stops all. It's just too easy.  wink

Last edited by MyRedNeptune (2007-06-09 07:19:26)


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#4 2007-06-09 21:08:05

Shanesta
Scratcher
Registered: 2007-05-24
Posts: 6

Re: Is there a way to recieve a broadcast from the Stop button?

I mean for when people press the stop button at the top, not one inside the game.

I was wondering if there were some embeded broadcasts like start and stop etc.

Offline

 

#5 2007-06-10 00:43:55

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Is there a way to recieve a broadcast from the Stop button?

The green flag does a broadcast (catchable with "when green flag clicked", but the stop button does a "stop all" which can't be caught, since all scripts are stopped.

Offline

 

#6 2007-06-11 06:12:17

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Is there a way to recieve a broadcast from the Stop button?

Whell, then, there's no way to do that.  hmm


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

Board footer