Scratch Project "Entry #1" – clones not working #4
Replies: 1 comment
-
We've started investigating this! We filed one pull request to help us debug the issue and catch similar ones in the future: We revived an old pull request that appears to more or less implement a fix, and started up the nicer implementation that we would rather merge instead, if it works out like we're hoping: In summary, the tricky thing with this code is that some of the Scratch code sets the size of particular clones (for example, the tiles) to NaN. Leopard didn't handle that nicely at all before, and that caused errors, and for those clones not to be visible at all. We're working on fixes to make Leopard's behavior more compatible with Scratch in this regard, but you can address it in your own Scratch or JavaScript code by taking a close look at any times you use the "set size to" block. (It's In Scratch, "set size to (NaN) %" - for example, "set size to (0 / 0) %" - is the same thing as "set size to 0%". This doesn't actually make the sprite infinitesimally tiny - it just makes it the "minimum" size that Scratch allows for the sprite's current costume. I could be mistaken, but I don't think "minimum size for a costume" (and "maximum size for a costume", for that matter) is a concept that exists in Leopard's code, yet. It's a point of incompatibility, where Leopard behaves differently from Scratch! And it's especially prominent here, because even if the code were doing We haven't carefully compared Leopard behavior (with a fix coded) and Scratch behavior for this project, yet, so there may be other things to fix, too. But the solution we tried so far looked pretty promising! Just some more Leopard code work, to get everything running right and nicely. ✨ |
Beta Was this translation helpful? Give feedback.
-
Scratch Project URL
https://scratch.mit.edu/projects/1040192471/
Leopard Project URL
No response
What kind of error(s) are you experiencing?
Description of issue(s)
"I might have used it wrong, but it only shows one of the clones, the main text. It doesn't show any of the tiles in the background. [...] The music and main text worked, but some of the clones didn't." - comment
Side note: "Oh yeah, another funny thing is that the Java[script] seemed to fix a bug in my scratch project, of the original text supposed to be coming in at 100% size. The beginning size works as I planned it to be on Java, but on Scratch it starts with a smaller size" - comment
Beta Was this translation helpful? Give feedback.
All reactions