Discuss Scratch

9gr
Scratcher
1000+ posts

[Solved] When I receive () block not running

project id removed because I dont want people looking at it anymore.

The "When I receive () block is not running in this project. (https://turbowarp.org/) (I cannot send the real scratch link because its not shared yet.) The When I receive () block is not running in the sprite “P1”.

Reproduction steps:
Go to a scratch mod to run this (I didn't release my project yet): https://turbowarp.org/
Press the Green Flag two times.
P1 doesn't show up. P1 is supposed to come up because i put it under the "When I receive " block.

Script:
when I receive [Menu ]
show
...
My browser / operating system: Windows NT 10.0, Edge, No Flash version detected

Last edited by 9gr (Feb. 15, 2021 10:05:28)

Chiroyce
Scratcher
1000+ posts

[Solved] When I receive () block not running

Problem solved. There is another block in the same sprite that contradicts everything, and that is run first
when I receive [Menu v]
stop [other scripts in this sprite v]


and there is this that is run second, but won't run as everything is stopped by the first one,
when I receive [Menu v]
go to x: (-121) y: (84)
set size to (150) %
show

So just remove this from the code and it'll work
when I receive [Menu v]
stop [other scripts in this sprite v]

Last edited by Chiroyce (Feb. 15, 2021 10:02:40)








April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
9gr
Scratcher
1000+ posts

[Solved] When I receive () block not running

Chiroyce wrote:

Problem solved. There is another block in the same sprite that contradicts everything, and that is run first
when I receive [Menu v]
stop [other scripts in this sprite v]


and there is this that is run second, but won't run as everything is stopped by the first one,
when I receive [Menu v]
go to x: (-121) y: (84)
set size to (150) %
show

So just remove this from the code and it'll work
when I receive [Menu v]
stop [other scripts in this sprite v]
Thanks for the help! I forgot about that “stop other scripts” block, thanks!
Chiroyce
Scratcher
1000+ posts

[Solved] When I receive () block not running

9gr wrote:

Thanks for the help! I forgot about that “stop other scripts” block, thanks!

You're welcome!
reporting to close the topic . . .







April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence

Powered by DjangoBB