Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Click Interfering with Broadcast.
- Tiger_Person
-
100+ posts
Click Interfering with Broadcast.
<resolved>
Last edited by Tiger_Person (Dec. 31, 2020 16:50:05)
- deesawhney
-
97 posts
Click Interfering with Broadcast.
It might help if you shared the link to your project 

- Tiger_Person
-
100+ posts
Click Interfering with Broadcast.
K. https://scratch.mit.edu/projects/468015148/
You might have to click the green flag twice. The broadcast back to home is in the beginning sprites and the sprite that receives that broadcast is the Click to Continue sprite; to the right of the beginning sprites.
You might have to click the green flag twice. The broadcast back to home is in the beginning sprites and the sprite that receives that broadcast is the Click to Continue sprite; to the right of the beginning sprites.
Last edited by Tiger_Person (Dec. 30, 2020 17:59:20)
- deck26
-
1000+ posts
Click Interfering with Broadcast.
Look at the script that makes the broadcast. Unless the value of XP changes it is constantly telling the sprite to show and broadcasting again. So the broadcast receiver is being constantly restarted.
- Tiger_Person
-
100+ posts
Click Interfering with Broadcast.
But how can I fix it? I'm sorry but I just can't seem to wrap my head around this. Look at the script that makes the broadcast. Unless the value of XP changes it is constantly telling the sprite to show and broadcasting again. So the broadcast receiver is being constantly restarted.
- abdulahad1234
-
15 posts
Click Interfering with Broadcast.
Good luck my friend! I know this may seem like an easy fix, but I just can't, so I'm asking here for help.
I have this script:
What I'm trying to do is when something is clicked hide the other sprite, but when I stop clicking that something, it just shows right back up. I know what the problem is, I just can't seem to fix it. I know the broadcast will only broadcast when the sprite is clicked, so once that sprite is not clicked anymore, it's as if that broadcast never happened. I have tried, if, then, blocks, repeat until blocks, and everything i can think of, but I can't seem to fix this simple problem, so, any help would be appreciated!
- mstone326
-
1000+ posts
Click Interfering with Broadcast.
As @Deck26 mentioned above, if your xp is < 30 that script is constantly running and sending the message Lesson Done which makes it restart over and over.
Is the Lesson Done when the XP > 29? If so, use a wait until XP > 29 then broadcast Lesson Done.
Is the Lesson Done when the XP > 29? If so, use a wait until XP > 29 then broadcast Lesson Done.
- Tiger_Person
-
100+ posts
Click Interfering with Broadcast.
Oh, I get it now, thanks. As @Deck26 mentioned above, if your xp is < 30 that script is constantly running and sending the message Lesson Done which makes it restart over and over.
Is the Lesson Done when the XP > 29? If so, use a wait until XP > 29 then broadcast Lesson Done.
- Discussion Forums
- » Help with Scripts
-
» Click Interfering with Broadcast.