player
parent
9a3e6641b2
commit
5044b6a29b
|
@ -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, -1, 1))
|
||||
else:
|
||||
if dash_target == Vector2.ZERO:
|
||||
var angle = global_position.angle_to_point(player.global_position) + PI
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
[ext_resource path="res://res/shaders/colorize.tres" type="Material" id=3]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 4, 5.5 )
|
||||
extents = Vector2( 3.5, 3.5 )
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=2]
|
||||
extents = Vector2( 7, 11 )
|
||||
|
@ -77,7 +77,7 @@ playing = true
|
|||
centered = false
|
||||
|
||||
[node name="WallCollision" type="CollisionShape2D" parent="."]
|
||||
position = Vector2( 12, 17.5 )
|
||||
position = Vector2( 11.5, 20.5 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="EnemyCollision" type="Area2D" parent="."]
|
||||
|
|
|
@ -107,7 +107,7 @@ func _physics_process(delta):
|
|||
invincible = false
|
||||
|
||||
if slowed:
|
||||
speed_multiplier = 0.5
|
||||
speed_multiplier = 0.18
|
||||
else:
|
||||
speed_multiplier = 1.0
|
||||
|
||||
|
|
Loading…
Reference in New Issue