So when I read the docs, it says that AnimatedTexture has current_frame as variable to set.
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
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?