Spaces:
Runtime error
Runtime error
s4s-editor-beta
/
local-scratch-vm
/test
/snapshot
/__snapshots__
/tw-restart-broadcast-threads.sb3.tw-snapshot
| // TW Snapshot | |
| // Input SHA-256: 128cc735fefc374c5935e2c3d9c28b7d07c03d58cd0d6abec4e879c41f4afb1c | |
| // Sprite2 script | |
| (function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage(); | |
| const b0 = runtime.getOpcodeFunction("looks_say"); | |
| const b1 = stage.variables["`jEk@4|i[#Fk?(8x)AV.-my variable"]; | |
| return function* genXYZ () { | |
| yield* executeInCompatibilityLayer({"MESSAGE":"plan 1",}, b0, false, false, null); | |
| b1.value = 0; | |
| startHats("event_whenbroadcastreceived", { BROADCAST_OPTION: "message1" }); | |
| startHats("event_whenbroadcastreceived", { BROADCAST_OPTION: "message1" }); | |
| thread.timer = timer(); | |
| var a0 = Math.max(0, 1000 * 0); | |
| runtime.requestRedraw(); | |
| yield; | |
| while (thread.timer.timeElapsed() < a0) { | |
| yield; | |
| } | |
| thread.timer = null; | |
| if (((+b1.value || 0) === 1)) { | |
| yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null); | |
| } | |
| yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null); | |
| retire(); | |
| }; }) | |
| // Sprite2 script | |
| (function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage(); | |
| const b0 = stage.variables["`jEk@4|i[#Fk?(8x)AV.-my variable"]; | |
| return function* genXYZ () { | |
| b0.value = ((+b0.value || 0) + 1); | |
| retire(); | |
| }; }) | |