Discuss Scratch

bluebomb
Scratcher
17 posts

What's the difference between 'Broadcast and wait' and 'Broadcast'?

broadcast [ v]
broadcast [ v] and wait

What is the difference? I need to not have my players be able to shoot the bullet more than once, or at least, one at a time slowly, and I thought
broadcast [ v] and wait
would pause it until the broadcast outcome is done?
Was I flawed?
mysterious-neutron
Scratcher
1000+ posts

What's the difference between 'Broadcast and wait' and 'Broadcast'?

The broadcast and wait block will wait until all the scripts that are starting by the broadcast ends and then continue the script
bluebomb
Scratcher
17 posts

What's the difference between 'Broadcast and wait' and 'Broadcast'?

mysterious-neutron wrote:

The broadcast and wait block will wait until all the scripts that are starting by the broadcast ends and then continue the script

Oh, Right. Well, to shoot the bullet you have to click the cross-thing (forgot), and i guess that repeats the broadcast if you spam it.. Thanks, maybe I'll find a solution.
hammer965
Scratcher
100+ posts

What's the difference between 'Broadcast and wait' and 'Broadcast'?

broadcast and wait starts the scripts in all the other places that receive the broadcast and waits until those scripts run to the finish before moving to the next step.

The problem could be either the script that runs after the broadcast runs very quickly so the wait time is not very long. OR the script lets the broadcast to keep being repeated.(e.g. if every time a key is pressed there is a new broadcast the new broadcast will occur even while the first one is still waiting for the script to finish if the trigger for a new broadcast is not stopped during .the waiting.
bluebomb
Scratcher
17 posts

What's the difference between 'Broadcast and wait' and 'Broadcast'?

hammer965 wrote:

broadcast and wait starts the scripts in all the other places that receive the broadcast and waits until those scripts run to the finish before moving to the next step.

The problem could be either the script that runs after the broadcast runs very quickly so the wait time is not very long. OR the script lets the broadcast to keep being repeated.(e.g. if every time a key is pressed there is a new broadcast the new broadcast will occur even while the first one is still waiting for the script to finish if the trigger for a new broadcast is not stopped during .the waiting.

Yeah, I probably need to find another way to make sure the bullet doesnt get rapid fired,..

Powered by DjangoBB