Discuss Scratch

Tiger_Person
Scratcher
100+ posts

Click Interfering with Broadcast.

<resolved>

Last edited by Tiger_Person (Dec. 31, 2020 16:50:05)

deesawhney
Scratcher
97 posts

Click Interfering with Broadcast.

It might help if you shared the link to your project
Tiger_Person
Scratcher
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.

Last edited by Tiger_Person (Dec. 30, 2020 17:59:20)

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

Click Interfering with Broadcast.

deck26 wrote:

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.
But how can I fix it? I'm sorry but I just can't seem to wrap my head around this.
abdulahad1234
Scratcher
15 posts

Click Interfering with Broadcast.

Tiger_Person wrote:

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:

whenIreceiveLesson Endwaituntiltouchingmouse-pointer?andmousedown?broadcastBack to HomewhenIreceiveBack to Homehide

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!
Good luck my friend!
abdulahad1234
Scratcher
15 posts

Click Interfering with Broadcast.

Good luck!
mstone326
Scratcher
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.
Tiger_Person
Scratcher
100+ posts

Click Interfering with Broadcast.

mstone326 wrote:

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.
Oh, I get it now, thanks.

Powered by DjangoBB