Procházet zdrojové kódy

Fix rotation clamp bug

Due to rotatino below 0 degrees going up to 270.
DricomDragon před 5 roky
rodič
revize
dfd46a8401
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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"):