Animation.track_set_key makes animation not linear

Godot Version



like topic dedicates,here are my codes below:

func moveToOrigin(val):
	anim_move_horizontal.track_set_key_value(0,0,val * size.x)
	await animationPlayerManager.playAnimationSync("horizontal_move")

anim_move_horizontal’s type is Animation,when i only set key value in key_idx 1,i can play animation linear(move smoothly),but when i set start frame and end frame,the node moves like blink(like discrete).

i dont know hot to resolve it,can somebody helps me?

ok,i have solved this,just set 0 to 0.0.fine fine :joy:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.