timeline_indexで合ってる。でもtimeline_position戻すの忘れるのってありがちだよね。
あと、他にplayer_attackってスプライトとかオブジェクトとかあったら名前変えとくように。