How do I send a message to a different scene?

I need help sending a two messages to another scene! how do I do this? if there is no way to do this yet its fine I have a plan b. link to game: Snap! Build Your Own Blocks

You can use these blocks:

[scratchblocks]
switch to scene [next v] and send [] @delInput::cap control
when switched to this scene ((message)::control) @delInput::hat control
[/scratchblocks]

Source
[scratchblocks]
switch to scene [next v] and send [] @</a>delInput::cap control
when switched to this scene ((message)::control) @</a>delInput::hat control
[/scratchblocks]

right?

I can't do source stuff. you you will have to make them for me.

Source is just the code for the scratchblocks.

still don't know how to do it and if its not in snap I can't.

It's in Snap! Just look at the primitaves in the control category.

gasp! :open_mouth: :open_mouth: I didn't know that worked! does
the other block sense the message?

Yep.

won't work.

worked for me. maybe you got the setup wrong

can you help me then? the link is at the top.

image

click arrow
image

in the second scene you find what sends the message and in the laser sprite you find the receiver.

I did that but it does not work.

I know. I'm not doing your project for you. I just told you how to get the message. Click the arrow in the right script, then use the MESSAGE variable to tell whether or not it's in hard mode.

won't work

That's not very helpful.
Anyway, replace both reciever scripts with one of this:
untitled script pic

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.