Can i make a sprite rotate 360 degrees continuously using animation player?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Socrates

Is it possible to have an object, such as a propeller or windmill blade, rotate 360 degrees on a loop using the animation player? It’s easy enough to do using code, just wondering if I’m missing something.

:bust_in_silhouette: Reply From: HalfTough

I don’t have access to Godot right now, so I can off, but looping can be found “track and timeline” controls under the animation panel: Introduction to the 2D animation features — Godot Engine (3.0) documentation in English

Yeah, I know about the looping, but if you try to make an object rotate 360 degrees continuously it goes from the last keyframe to the first in the opposite directionas the other rotation keyframes.

Socrates | 2018-05-01 18:17

So, just go 0, 180, 360 (or 359 if needed).

HalfTough | 2018-05-01 19:06

Yea, use 359 (or -359) on the last frame (the count starts at 0, so 359 makes the 360th degree).
And two keyframes will do (start and end).

woopdeedoo | 2018-05-03 03:42

:bust_in_silhouette: Reply From: Socrates

It seems to work if i create a keyframe at the beginning with a rotation of 0 degrees and at the end (basically at the same time as the beginning since it’s looping), with a rotation of 360 degrees.