Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Racerrroar |
func _physics_process(delta):
angle = self.rotation_degrees
while angle not in range(-360, 360):
if angle > 360:
angle -= 360
elif angle < -360:
angle += 360
I have tried restarting the engine and rewriting it but still gives an error on this line:
while angle not in range(-360, 360):