Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Broadcasting help
- dreamy678
- Scratcher
49 posts
Broadcasting help
Im trying to make a game where if you get close then the NPC will shoot. The problem is when it gets close it starts to broadcast the message over and over, really fast. So the projectile wont actually move, it just stays still. How can I make it broadcast only once?
- Quantix
- Scratcher
30 posts
Broadcasting help
Try using “broadcast and wait”, also use “wait until distance is greater than #” to stop the loop quickly
- dreamy678
- Scratcher
49 posts
Broadcasting help
Yeah, I finally got it, Broadcast and wait was not working so I just made a variable and it could shoot if the variable was 0 but not 1. So when he shot it changed to 1 and when it finished shooting it changed to 0
- Discussion Forums
- » Help with Scripts
- » Broadcasting help