1 2 3 4 5 6 7 8 9 10 11 12 13 14
extends Sprite # TODO get actual numbers, rather than random shit rotation var progress = 0.003 var deltaValue = 0.003 func _ready(): pass # Replace with function body. func _physics_process(delta): progress += deltaValue if progress >= 1.0 or progress <= 0.0: deltaValue = -deltaValue rotation_degrees = (progress *23.0+8.0) -8.0