How to rotate a sprite about itself

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

How to rotate a 2d sprite about the center of itself like a ball a car tire or a fan

:bust_in_silhouette: Reply From: Zylann

Modify the rotation property: Node2D — Godot Engine (3.1) documentation in English

Add a small amount every frame in _process, or use AnimationPlayer to keyframe it.

Make sure your sprite’s centered property is also checked.