Quellcode durchsuchen

Fix rotation clamp bug

Due to rotatino below 0 degrees going up to 270.
DricomDragon vor 5 Jahren
Ursprung
Commit
dfd46a8401
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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"):