Browse Source

Fix rotation clamp bug

Due to rotatino below 0 degrees going up to 270.
DricomDragon 5 years ago
parent
commit
dfd46a8401
1 changed files with 1 additions and 1 deletions
  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"):