Discuss Scratch

megaman700
Scratcher
5 posts

Wait until receive message

I have a hard time getting around in games that I make getting a sprite to wait until it reciueves a message from the line of code that its using intead of starting a new one that doesn't work as well. I think we need to add a block that makes a sprite wait until it receives a message, or at least add that as an option to put in for wait.
TheHockeyist
Scratcher
1000+ posts

Wait until receive message

whenIreceivemessage
Only when the message is received will this block activate. No support.
Cosmicstars-
Scratcher
100+ posts

Wait until receive message

TheHockeyist wrote:

whenIreceivemessage
Only when the message is received will this block activate. No support.
No support because for this
stickfiregames
Scratcher
1000+ posts

Wait until receive message

Support.

TheHockeyist wrote:

whenIreceivemessage
Only when the message is received will this block activate. No support.
That's not a workaround.
DaSpudLord
Scratcher
1000+ posts

Wait until receive message

stickfiregames wrote:

Support.

TheHockeyist wrote:

whenIreceivemessage
Only when the message is received will this block activate. No support.
That's not a workaround.
Yes, but that block can be USED to create a workaround. Multiple workarounds, in fact.

Last edited by DaSpudLord (June 2, 2015 17:07:17)

The_Scratch_Squad
Scratcher
1000+ posts

Wait until receive message

That would require a balloian and that is rejected in the stickies.

Workaround-
whenclickedsetBroadcastto0whenIreceivemessage 1setBroadcastto1whenthisspriteclickedwaituntilBroadcast=1say...

so sadly, no support.
stickfiregames
Scratcher
1000+ posts

Wait until receive message

The_Scratch_Squad wrote:

That would require a balloian and that is rejected in the stickies.
How would it require a boolean? It would just be a single block:
waituntilIreceive

Also, you should have
setbroadcastto0
before every
waituntilbroadcast=1
rather than when the green flag is clicked.
pokejofe
Scratcher
68 posts

Wait until receive message

support.
P.S. are you saying a block like this?
messagemessage1recieved
stickfiregames
Scratcher
1000+ posts

Wait until receive message

pokejofe wrote:

support.
P.S. are you saying a block like this?
messagemessage1recieved
No, that has been rejected. It would look like
waituntilIreceivemessage1
Cash737
Scratcher
62 posts

Wait until receive message

… check out this project…



CRAZY! This is a glitch that takes an eternity to make!
TheAdriCoolManDude
Scratcher
1000+ posts

Wait until receive message

Cash737 wrote:

… check out this project…



CRAZY! This is a glitch that takes an eternity to make!
Please don't necropost (It does count as one, this post was unconstructive).
space_elephant
Scratcher
500+ posts

Wait until receive message

waituntilIreceivemessage 1repeatuntilIreceivemessage 1
There is a workaround however.
. . .setwaittoorwaituntilwait. . .whenIreceivemessage 1setwaittonot
ScratchLover506
Scratcher
32 posts

Wait until receive message

this is what i'm at.
waituntilSpriterecievesmessage1

Last edited by ScratchLover506 (Dec. 25, 2020 15:50:31)

TheNothingBird
Scratcher
100+ posts

Wait until receive message

TheAdriCoolManDude wrote:

Cash737 wrote:

… check out this project…



CRAZY! This is a glitch that takes an eternity to make!
Please don't necropost (It does count as one, this post was unconstructive).
Necroposts dont count as a necropost in Suggestions.
fdreerf
Scratcher
1000+ posts

Wait until receive message

TheNothingBird wrote:

Necroposts dont count as a necropost in Suggestions.
Not exactly, yet they can still be spammy, as indicated by this flowchart. (which is complete fact and law so do no question it)

lil_doggy
Scratcher
94 posts

Wait until receive message

This is extremely useless. The easiest workaround is to just do this:
whenIreceivebroadcast 1setBroadcast Recievedto1

whenclickedwaituntilBroadcastRecieved=1dowhatever
gosoccerboy5
Scratcher
1000+ posts

Wait until receive message

Sorta dupe: https://scratch.mit.edu/discuss/topic/324844
but that one has much more discussion than this

also yes, that is a necropost, as evidenced by fdreerf's great flowchart

Last edited by gosoccerboy5 (Dec. 25, 2020 23:52:23)

IndianRuby718
Scratcher
100+ posts

Wait until receive message

gosoccerboy5 wrote:

also yes, that is a necropost, as evidenced by fdreerf's great flowchart
uhm… no… according to the chart necroposting is impossible if it's in suggestions XD
also I was going to question fdreerf's great flowchart but then I realized I was wrong XD
JungleHome
Scratcher
1 post

Wait until receive message

Does anyone know how to do this?

I want a block line that says

when i recieve = message 1
wait until i recieve = message 2
show

because i need it for a game im making

whenIreceivemessage1
waituntilirecievemessage2
show

Last edited by JungleHome (June 14, 2022 07:31:47)

Powered by DjangoBB