Hello, I was wondering if I can set the animation frame of a sprite through code and if so how?
Develop games in your browser. Powerful, performant & highly capable.
See this manual entry:
construct.net/en/make-games/manuals/construct-3/scripting/scripting-reference/plugin-interfaces/sprite
Use the variable on the sprite instance: animationFrame
e.g.: runtime.objects.Sprite.getFirstInstance().animationFrame = 1