notes and changed dash behaviour to be horizontal only

This commit is contained in:
Clevertop 2024-08-11 15:30:43 +10:00
parent f1dea7e36d
commit 44de4bd028
2 changed files with 3 additions and 1 deletions

View file

@ -98,6 +98,7 @@ func _physics_process(delta):
gravity = 0
dash_time -= delta
var dash_direction = camera.global_position.direction_to(dash_node.global_position)
dash_direction.y = 0
velocity = dash_direction * SPEED*350 * delta
elif dashing:
dashing = false