Explorar o código

Fix rotation clamp bug

Due to rotatino below 0 degrees going up to 270.
DricomDragon %!s(int64=5) %!d(string=hai) anos
pai
achega
dfd46a8401
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Player.gd

+ 1 - 1
Player.gd

@@ -58,7 +58,7 @@ func _physics_process(delta):
 			if dire < 0:
 				dire = 3
 
-			tween.rotate_char(self, DEG_LIST[dire])
+			tween.rotate_char(self, rotation_degrees - 90)
 			is_moving = true
 
 	elif Input.is_action_pressed("ui_right"):