TurboWarp / desktop

A better offline editor for Scratch 3.
https://desktop.turbowarp.org/
GNU General Public License v3.0
376 stars 89 forks source link

The interface crashes. #919

Open pvzsvt opened 9 months ago

pvzsvt commented 9 months ago

When I make an online game, sometimes it doesn't clone. I turned on infinite clone and got it running, but it crashed.Pack it and preview,preview the interface will stuck.Both on the website and in the program.I'm from China.

pvzsvt commented 9 months ago

I put the "other player" sprite in my backpack and deleted it. Ran without any problems. When it's running, I put that sprite in and it doesn't matter. Ran again, it got stuck again. The sprite gets stuck as soon as it runs. I made a snake wars game. I think my code is right. 捕获Every time I run this script, it gets stuck. Other scripts for this sprite are about clones or homemade blocks.

pvzsvt commented 9 months ago

I found that that sprite couldn't be cloned.

CST1229 commented 9 months ago

By the way, clones receive broadcasts, so they might be creating clones of themselves. You can create a "for this sprite only" variable, set it to 0 in a when flag clicked script and to 1 on the when I start as a clone script and then check for that in the receive script.

pvzsvt commented 9 months ago

I know that. I tweaked the code and now the problem is solved, how do I close the issue?