Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Titox |
How to rotate a 2d sprite about the center of itself like a ball a car tire or a fan
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Titox |
How to rotate a 2d sprite about the center of itself like a ball a car tire or a fan
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.