Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do I make something happen intermittently (now and again)?
- hihooee
- New to Scratch
2 posts
How do I make something happen intermittently (now and again)?
I want a sprite to appear now and again (and then disappear after a few seconds). I've tried using the “timer” and different funky math equations with “random” thrown in, but when time comes and I “broadcast” a message to show the sprite it gets broadcast a LOT (because the timer is so fast?). I'm sure others have come up with a smart way to make something happen NOW AND AGAIN. Please help.
- deck26
- Scratcher
1000+ posts
How do I make something happen intermittently (now and again)?
Set a variable to a random time and reset the timer. Show or hide the sprite and wait until the timer exceeds the variable's value. Repeat.
- hihooee
- New to Scratch
2 posts
How do I make something happen intermittently (now and again)?
Perfect! That did the trick. Thank you deck26!
- author_girl
- Scratcher
1 post
How do I make something happen intermittently (now and again)?
You can use a wait block in side at repeat block like this:\
Repeat forever
“Your Command”
Wait _seconds
Repeat forever
“Your Command”
Wait _seconds
- Discussion Forums
- » Help with Scripts
- » How do I make something happen intermittently (now and again)?