Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | WIND |
I’m currently making a character creator for my game. The way you use it is by putting an image and a text file in the user folder.
The image is a sprite sheet, and the text file defines the coordinates in which the image will be cropped.
To crop the frames, i’m using the Image.get_rect() method. Then, i add the images as frames in a SpriteFrames node, and use the ResourceSaver class to save the resource in the user dir.
The problem is: those saved SpriteFrames weigh an ungodly amount more than the original files, even when i use the “compress” flag in the save() method.
Why does this happen?
What’s in the file? You should be able to open it in a text editor.
exuin | 2021-06-06 06:50
All it has are the elements that define the color of every pixel and the (very few) lines that define each one of the animations.
WIND | 2021-06-06 16:46