Help with object movement timer reset and trigger

hello I have a vine object that moves up then pauses for a sec then down and pauses a sec repeats in a loop triggered whenever the players x position is close to the vine. the problem is the loop stops whenever the player is not in range it should stop back at the original position then when player is close start the loop again.

example
animation

events

Just a thought, you could use a boolean variable that switches to true when the player is closer than 100 px to the vine object and this state of the variable is the condition for the movement of the vine. After the movement is finished you switch the variable back to false.

3 Likes