dont normalize movement vector
This commit is contained in:
parent
5c6dc263c4
commit
1250b7a80a
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ func _enter(_previous_state_path: String, _data: Dictionary = {}) -> void:
|
|||
func _state_physics_update(_delta: float) -> void:
|
||||
#region player physics
|
||||
var direction: Vector2 = player.get_movement_vector()
|
||||
direction = direction.normalized()
|
||||
#direction = direction.normalized() # unneeded with 4 way movement
|
||||
player.velocity = direction * player.max_speed * player.speed_mult
|
||||
|
||||
player.move_and_slide()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue