-
Notifications
You must be signed in to change notification settings - Fork 352
Description
We noticed some strange things about Carl's Cachalot project:
https://llk.github.io/scratch-vm/#73724746
Even though the trees always have y=-10, they sometimes appear very high in the sky! It appears this is the case because there is one costume that has a rotation center in some other coordinate system than the one that's expected (possibly affected by the SVG viewBox). That costume - the one that's positioned incorrectly - is notably generated by Illustrator instead of the Scratch paint editor. :(
A similar thing can be seen with the whale sprite. One of the costumes causes the whale to appear in the top right of the stage. It has a rotation center that is different from the rotation centers of the other two costumes, and that SVG was generated by Illustrator. It's hard to see the whale sprite at first but you can get it if you slow the speed of the project down using the arrow keys.
This code looks possibly suspect:
https://github.com/LLK/scratch-flash/blob/abac440f1f34932679bd001d96de2315be7020ee/src/scratch/ScratchCostume.as#L250
But I wouldn't know where to begin with this.