Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » how to generate an imput
- 2014CG
- New to Scratch
3 posts
how to generate an imput
i am making a game kinda like the toy called “Bop It” im wondering how to have the notification to press a certain button. for example: you have to press the right key to go on. and if you press the wrong one you lose. and i am really wondering how to randomly generate the botton you have to press, the audio stating the name of the botton, and how to script if you press it or not.
- scratch342
- Scratcher
55 posts
how to generate an imput
share your project and I will help. And the audio thing is impossible. Just use the
say [] for (2) secsblocks.
Messi dribbles everyone and scores. Hardly celebrates
Cristiano Ronaldo scores a 30 yard screamer. You can guess what he does
- drmcw
- Scratcher
1000+ posts
how to generate an imput
You'd have to record the audio yourself unless you can find appropriate sound files. The best way to randomly generate events is to use
This would generate 4 events called My event1, My event2, My event3 and My event4.
broadcast (join [My event] (pick random (1) to (4)))
This would generate 4 events called My event1, My event2, My event3 and My event4.
Last edited by drmcw (Feb. 24, 2014 09:27:32)
- Discussion Forums
- » Help with Scripts
- » how to generate an imput