Crystalline-awakening/planetScene/planet_sprite.gd

10 lines
235 B
GDScript3
Raw Normal View History

2025-05-18 13:55:56 +00:00
extends Sprite2D
# Called when the node enters the scene tree for the first time.
2025-05-18 14:16:34 +00:00
func _physics_process(delta: float):
if Input.is_action_pressed("moveLeft"):
rotate(0.01)
if Input.is_action_pressed("moveRight"):
rotate(-0.01)