Skip to content

Instantly share code, notes, and snippets.

View Mikeysax's full-sized avatar

Michael Farrell Mikeysax

View GitHub Profile
@Mikeysax
Mikeysax / animation_player_interpolation.gd
Last active October 22, 2023 23:44
Automates the setting of interpolation mode on AnimationPlayer tracks in Godot 4.2+
extends AnimationPlayer
# HOW TO USE:
# Add this to an AnimationPlayer
# Make sure to set the interp mode on the node in the editor.
#
# Make sure to also set the FPS on the animation import as well.
# If you want to animate on 2s then set the fps to 12 or 15 and
# set Interp Mode to NEAREST