So when I read the docs, it says that AnimatedTexture has current_frame as variable to set.
https://docs.godotengine.org/en/stable/classes/class_animatedtexture.html#class-animatedtexture-property-current-frame
Except when I try to do that, like this:
onready var heart_fx_texture = preload("res://assets/textures/Effect04AnimatedTexture.tres")
var heart_fx = Light2D.new()
heart_fx.texture = heart_fx_texture
heart_fx.texture.current_frame = 0
add_child(heart_fx)
Result:
Invalid set index 'current_frame' (on base: AnimatedTexture)
It does not set the correct animation frame. I also do not have access to the 'oneshot' property. But the heartfxtexture is definitely of class AnimatedTexture.
I'm not sure what I'm missing. My Godot version is 3.2.1. Were these things added to AnimatedTexture in later versions?