I created a (character for ASCII %n) block using this code:
characterFor: t1
^ Character value: t1I tested it, and it worked. I put it in a project I was working on, and when I went to save it, it gave me a dialog box (a Scratch one, not the red window) that said: "Save failed: unknown class Character". I removed all of the (character for ASCII %n) blocks from the project and tried to save it again with no success. When I opened a new project and saved it without doing anything, it went fine. I loaded it, and it loaded fine. Then I put a (character for ASCII %n) block in the sprite and saved it, and - guess what? - it saved it. So please tell me what is going wrong (and, unfortunately, I cannot upload this project even without the new block).
Offline
I had the same problem while exporting a sprite.
Offline
meowmeow55 wrote:
I created a (character for ASCII %n) block using this code:
Code:
characterFor: t1 ^ Character value: t1I tested it, and it worked. I put it in a project I was working on, and when I went to save it, it gave me a dialog box (a Scratch one, not the red window) that said: "Save failed: unknown class Character". I removed all of the (character for ASCII %n) blocks from the project and tried to save it again with no success. When I opened a new project and saved it without doing anything, it went fine. I loaded it, and it loaded fine. Then I put a (character for ASCII %n) block in the sprite and saved it, and - guess what? - it saved it. So please tell me what is going wrong (and, unfortunately, I cannot upload this project even without the new block).
Hmmmm... very strange, I think you probably just caused an error and made the VM panic.
Offline
johnnydean1 wrote:
I had the same problem while exporting a sprite.
It errors when I export a sprite with the (character for ASCII %n) block in it as well, it gives me a dialog with "Could not write file: Export failed" in it. But when I try to export a sprite without my new block, it works fine.
Offline