0 votes

i'm trying to add animation for a character from a sprite sheet by code and here is my code

var animation = Animation.new()

var track = animation.add_track( animation.TYPE_VALUE )
animation.track_set_path(track, "node path for frame????????" )

and i need the node path for that, some one help me

asked Jun 12, 2019 in Engine by Thakee Nathees (150 points)

1 Answer

0 votes
Best answer

it's "Sprite:frame"

answered Jun 12, 2019 by Thakee Nathees (150 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.