desktop icon indicating copy to clipboard operation
desktop copied to clipboard

The interface crashes.

Open pvzsvt opened this issue 1 year ago • 4 comments

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 avatar Feb 10 '24 07:02 pvzsvt

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 avatar Feb 10 '24 10:02 pvzsvt

I found that that sprite couldn't be cloned.

pvzsvt avatar Feb 11 '24 09:02 pvzsvt

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.

CST1229 avatar Feb 11 '24 10:02 CST1229

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

pvzsvt avatar Feb 11 '24 11:02 pvzsvt