Compare commits

..

No commits in common. "a3cf0bf63214a9b68704d280927fe75bdb02ef95" and "cb65aa03330896a2e04a766096a41c7bdfb379e1" have entirely different histories.

2 changed files with 1 additions and 2 deletions

View File

@ -25,7 +25,6 @@ flip_h = true
use_parent_material = true
frames = ExtResource( 1 )
animation = "idle"
frame = 1
playing = true
centered = false

View File

@ -14,7 +14,7 @@ func _physics_process(delta):
var dist = global_position.distance_to(player.global_position)
if dist > 25 and dash_target == Vector2.ZERO:
$Aim.visible = false
global_position = global_position.move_toward(player.global_position, clamp(dist * delta * speed_multiplier, -8, 8))
global_position = global_position.move_toward(player.global_position, dist * delta * speed_multiplier)
else:
if dash_target == Vector2.ZERO:
var angle = global_position.angle_to_point(player.global_position) + PI