Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » The Broadcast block is acting strange
- UNEVENLY
- Scratcher
1 post
The Broadcast block is acting strange
The broadcast block for me is over exaggerating the requests in the block. Is it just me or are other people having the same problem.
- xAmt8
- Scratcher
1 post
The Broadcast block is acting strange
Can you please share the project where this happens?
- MineTurte
- Scratcher
500+ posts
The Broadcast block is acting strange
This is typically because of some unknown bug between broadcasts and clones. If you have The broadcast block for me is over exaggerating the requests in the block. Is it just me or are other people having the same problem.any clones in the same sprite as the broadcast, it'll typically send multiple requests. You can fix this by either using a custom block instead OR making a clone checker.
Clone checker code:
whatever is before the broadcast block
set [ cloneCheck] to [0]
broadcast [ whatever]
when I receive [ whatever]
change [ cloneCheck] by (1)
if <(cloneCheck) = [1]> then
do whatever you need
end
Hope this helps!
Last edited by MineTurte (April 8, 2024 13:41:35)
15+ (not revealing age) girl. Pronouns are she/her.
Host of The Pi Counsel. Comment in studio to join.
Front-end web developer & software programmer. I use JS, HTML, & CSS. Learning python3 right now.
Grammar fanatic as well
If I helped you out consider following Juni-Bug!
Select this + shift + down arrow = view rest of signature
This is JuniperActias. AKA Moth mommy.
Signature gradients here
If you found this secret; reply with ‘uwu’ with absolutely no context
Host of The Pi Counsel. Comment in studio to join.
Front-end web developer & software programmer. I use JS, HTML, & CSS. Learning python3 right now.
Grammar fanatic as well
If I helped you out consider following Juni-Bug!
Select this + shift + down arrow = view rest of signature
This is JuniperActias. AKA Moth mommy.
Signature gradients here
If you found this secret; reply with ‘uwu’ with absolutely no context
- Fluffygamer_
- Scratcher
1000+ posts
The Broadcast block is acting strange
(#3)It's normal, as clones use ALL its parent sprite's code, includingThis is typically because of some unknown bug between broadcasts and clones. If you have The broadcast block for me is over exaggerating the requests in the block. Is it just me or are other people having the same problem.any clones in the same sprite as the broadcast, it'll typically send multiple requests. You can fix this by either using a custom block instead OR making a clone checker.
Clone checker code:whatever is before the broadcast block
set [ cloneCheck] to [0]
broadcast [ whatever]
when I receive [ whatever]
change [ cloneCheck] by (1)
if <(cloneCheck) = [1]> then
do whatever you need
end
Hope this helps!
when I receive [ ]so when your message is sent, it's also received by your sprite's clones !
This means this isn't a bug at all.
BREAKING NEWSCredit to @jmdzti_0-0
The evil kumquats have rebelled and now they don't just eat signatures.
NOW THEY EAT YOUR «MY STUFF» PAGE AND OTHER 2.0 UI PAGES !
BLOCKS ARMY :
((0) - (0)) // This is Zero. He protects my signature from evil kumquats
------(:-:)------ :: pen // This is Bumpa. She bumps my topics when necessary. She also have a few skills at fighting since Zero taught her.
(O(w :: variables)O :: sensing) // This is Dogee. He helps me doing projects
('-' :: list) // This is Little. She verify that evil kumquats aren't coming.
° ° :: #0055ff // This is 2S. He is the best animator I never seen on scratch. His account is Scratcheurscratch (https://scratch.mit.edu/users/Scratcheurscratch)
when green flag clicked :: cap // This is Soja. I don't know if it's a boy or a girl but who cares ? Soja often draw thumbnails for my projects.
- Discussion Forums
- » Help with Scripts
- » The Broadcast block is acting strange