tip of the day. Whenever I want to make a gif animation of my godot app or game I use this [1] function to create an image at certain points in the program. Like after sending a signal, redrawing a component or on a timer. I have it in a screenshot class that names them "yyyymmdd-idx.png".

Then I use imagemagick to convert [2] them into a gif.

[1] get_viewport().get_texture().get_image().save_png

[2] convert -delay 20 -loop 0 *.png anim.gif

#godot #gdscript #gif #tips