Skip to content

Instantly share code, notes, and snippets.

@Aldlevine
Aldlevine / animated_atlas_texture.gd
Last active April 6, 2022 00:02
Adds an animated atlas texture to Godot
extends AtlasTexture
class_name AnimatedAtlasTexture
export(int, 1, 100) var h_frames := 1
export(int, 1, 100) var v_frames := 1
export var fps := 10.0
var previous_frame := 0
var frame := 0