Timeline and velocity question

Hello,

I’ve been making a flower that rotates based on the velocity of the player. It gets the velocity of the player and divides it by -20, then does a timeline where the flower moves by -30 degrees (if the velocity was 600 on the x). There are two problems that I’m facing though.

The first is that the flower will sometimes (note: sometimes) do the animation twice, so it will start moving when I touch the box collision, then abruptly stop, then redo the animation from the timeline.

The second problem is that I don’t know why this is happening. It’s either because the 2dsidescroller character has multiple collisions along with the player that touch the collision for the flower, or because something is wrong with the timeline.

I already used an “is overlapping component” for the main character.

Thank you in advance.

Ok I got this to work using a boolean called “isanimating” for the timeline.

I apologize for posting too soon.

Thank you.