Compare commits
No commits in common. "9a3e6641b21e5c53943e5b83a3a7b58b9f463de8" and "1ce68ff4ed134e5409dcf307f6790fe551a60433" have entirely different histories.
9a3e6641b2
...
1ce68ff4ed
|
@ -25,6 +25,7 @@ flip_h = true
|
|||
use_parent_material = true
|
||||
frames = ExtResource( 1 )
|
||||
animation = "idle"
|
||||
frame = 1
|
||||
playing = true
|
||||
centered = false
|
||||
|
||||
|
|
|
@ -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, -2, 2))
|
||||
global_position = global_position.move_toward(player.global_position, clamp(dist * delta * speed_multiplier, -8, 8))
|
||||
else:
|
||||
if dash_target == Vector2.ZERO:
|
||||
var angle = global_position.angle_to_point(player.global_position) + PI
|
||||
|
|
Loading…
Reference in New Issue