Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Question Blocks
- Collskies
- Scratcher
35 posts
Question Blocks
https://scratch.mit.edu/projects/534868831/
I know I've been on the forums multiple times, but I need more help. I tried to add question blocks, but the platforming is bad. I think its an error with my scripts (which I've deleted.) I want my question blocks to:
1: Be clonable like the coins
2: Be able to give various powerups.
If this is too much, tell me how to do only the first one. Again, I'm sorry for the amount of posts here.
Thanks,
Collskies
I know I've been on the forums multiple times, but I need more help. I tried to add question blocks, but the platforming is bad. I think its an error with my scripts (which I've deleted.) I want my question blocks to:
1: Be clonable like the coins
2: Be able to give various powerups.
If this is too much, tell me how to do only the first one. Again, I'm sorry for the amount of posts here.
Thanks,
Collskies
- helloworldbyeworld
- Scratcher
1000+ posts
Question Blocks
To ask a question and have the user type in an answer, use the ask _ and wait block, like this:
To get the user’s answer, use the answer reporter block.
I hope this helps!
ask [question prompt here] and wait
To get the user’s answer, use the answer reporter block.
(answer) // the user’s response to the question
I hope this helps!
Helloworldbyeworld | 1200+ posts
Have a great day
- Collskies
- Scratcher
35 posts
Question Blocks
Thank you, but that wasn't what I was asking. I was talking about Mario Question Blocks that when you hit them, they give you a coin or an item. To ask a question and have the user type in an answer, use the ask _ and wait block, like this:ask [question prompt here] and wait
To get the user’s answer, use the answer reporter block.(answer) // the user’s response to the question
I hope this helps!
- helloworldbyeworld
- Scratcher
1000+ posts
Question Blocks
Oh, sorry for misunderstanding your question. I thought you meant the question scratch blocks. I might be able to help a bit. If you have a list of items, and you want to pick a random item in the list of items, then use this script:
when I receive [Question block touched v]
process item (item (pick random (1) to (length of [question block items v] :: list)) of [question block items v] :: list)
Helloworldbyeworld | 1200+ posts
Have a great day
- goldenlion06
- Scratcher
500+ posts
Question Blocks
it's ok if you go on the forums many times, it's not ok if you use them for everything you do
i add a sentence to this every day i enjoy school:
- Collskies
- Scratcher
35 posts
Question Blocks
scratch blocks. I might be able to help a bit. If you have a list of items, and you want to pick a random item in the list of items, then use this script:That helps. Thanks! Oh, sorry for misunderstanding your question. I thought you meant the questionwhen I receive [Question block touched v]
process item (item (pick random (1) to (length of [question block items v] :: list)) of [question block items v] :: list)
- Discussion Forums
- » Help with Scripts
- » Question Blocks