Sprite_Save seems to do nothing

GML:
sprite_save(Sprite1, 0, working_directory+"smile.png");
GML:
sprite_save(Sprite1, 0, "smile.png");
No matter what version of the code I use it doesn't generate the image file, nor does it throw an error. It just does nothing.
 
That was 100% it, this works

GML:
smile = sprite_duplicate(Sprite1)
sprite_save(smile, 0, working_directory+"smile.png");
sprite_delete(smile)


You'd think an entirely new version of the program with several major updates later they'd either fix it to work with a pre-existing sprite or clearly document that it only works with dynamically created temporary assets
 

TsukaYuriko

☄️
Forum Staff
Moderator
I'd think that those who have encountered and dealt with this issue would then have gone (or will go) ahead and file a bug report so that the technical writer will become aware of and add the missing documentation in future releases... wink wink. ;)
 
Top