Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Can a "Repeat until I receive <message>" Block be made?
- mantita223
- Scratcher
18 posts
Can a "Repeat until I receive <message>" Block be made?
One day I was wondering “If a ”Repeat until I receive <message>“ block was made then this would be easier to program. But then I thought ”WHAT IF IT WAS REAL ?!?!?!?!" So I made this. Maybe its possible with custom blocks. Let me try.
That didn't work . If the Scratch team made it in 3.0 maybe it can work!!!!! If you guys figure it out reply to me so Scratch can be a better place!!!
Lets try again!
define Repeat until I receive
forever
That didn't work . If the Scratch team made it in 3.0 maybe it can work!!!!! If you guys figure it out reply to me so Scratch can be a better place!!!
Lets try again!
define repeat until I receive (message)Looks Invalid.
repeat until I recive(message)
INPUT
end
Last edited by mantita223 (Nov. 29, 2018 21:00:16)
- NilsTheBest
- Scratcher
1000+ posts
Can a "Repeat until I receive <message>" Block be made?
You could easily do this workaround:
With custom blocks, I'm sure you can find something ^^
when I receive [somethin' v]
set [received v] to [1]
// remember to set "received" to 0 when the green flag is clickedwith
repeat until <(received) = [1]>
... :: grey
end
With custom blocks, I'm sure you can find something ^^
Last edited by NilsTheBest (Nov. 29, 2018 20:33:40)
NilsTheChair | 5 years on Scratch | 4000+ posts | former wiki editor | 332nd FPC | CoR founder
- mantita223
- Scratcher
18 posts
Can a "Repeat until I receive <message>" Block be made?
Its a way that works but I do want to see if we can do it in a different more simple way with custom blocks ect.
Good effort though!
- shadowprogaming13
- Scratcher
100+ posts
Can a "Repeat until I receive <message>" Block be made?
Make A Block Called ‘Repeat Until’ And Make A Number Input And Call It ‘ Message’. Make Variable Called Message. Forever Set The Number Input Message To The Variable. When Flag Is Clicked Repeat Until Variable=100 Wait 0.1 Seconds Change Variable Message By 1.
Define Block ‘Message’ Wait Until Number Input ‘Message’ =100 Broadcast ‘Your Input’
Define Block ‘Message’ Wait Until Number Input ‘Message’ =100 Broadcast ‘Your Input’
Last edited by shadowprogaming13 (Nov. 29, 2018 21:24:33)
⭐ Hi, I'm shadow! I like terraria and various horror games. I'm currently working on my own mod for terraria. ⭐
- Ruination Mod Forum -
- My new account -
- shadowprogaming13
- Scratcher
100+ posts
Can a "Repeat until I receive <message>" Block be made?
I Don't 100% Know If It Works Because I Haven't Tried It.
⭐ Hi, I'm shadow! I like terraria and various horror games. I'm currently working on my own mod for terraria. ⭐
- Ruination Mod Forum -
- My new account -
- shadowprogaming13
- Scratcher
100+ posts
Can a "Repeat until I receive <message>" Block be made?
Does It Work?
⭐ Hi, I'm shadow! I like terraria and various horror games. I'm currently working on my own mod for terraria. ⭐
- Ruination Mod Forum -
- My new account -
- shadowprogaming13
- Scratcher
100+ posts
Can a "Repeat until I receive <message>" Block be made?
⭐ Hi, I'm shadow! I like terraria and various horror games. I'm currently working on my own mod for terraria. ⭐
- Ruination Mod Forum -
- My new account -
- Discussion Forums
- » Questions about Scratch
- » Can a "Repeat until I receive <message>" Block be made?