Hello,
I'm trying to implement a system where the player can have custom animations, and it's supplied to the engine through a folder in the user://
directory as a sprite sheet. I'm trying to make a preview icon next to the player select that only displays the first frame of an animation. The preview icon is a TextureRect
.
In order for it to work I need to be able to cut the image programatically, however, three hours of google searching led me to nothing, so I ask: is there a way to do this in GDScript?
Thanks in advance