the instance variable it has is inside of an array
I don't know what you mean by that.
To set animation frame to an instance variable you can use this action:
Sprite set frame to self.Var
To set animation frame to a value from an array:
Sprite set frame to Array.At(index)