no matter what i try, at motion_finished the motion_index always returns 0 so i cant loop anything but the idle
this is how i solved it, motion variable is set when i call the play_motion