diff --git a/src/models/enemies/ghost/Ghost.tscn b/src/models/enemies/ghost/Ghost.tscn index a763fe5..6b9e743 100644 --- a/src/models/enemies/ghost/Ghost.tscn +++ b/src/models/enemies/ghost/Ghost.tscn @@ -25,6 +25,7 @@ flip_h = true use_parent_material = true frames = ExtResource( 1 ) animation = "idle" +frame = 3 playing = true centered = false diff --git a/src/models/enemies/ghost/ghost.gd b/src/models/enemies/ghost/ghost.gd index ec3f8ff..ec83f80 100644 --- a/src/models/enemies/ghost/ghost.gd +++ b/src/models/enemies/ghost/ghost.gd @@ -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 diff --git a/src/models/player/Player.tscn b/src/models/player/Player.tscn index c39d192..c1a8aab 100644 --- a/src/models/player/Player.tscn +++ b/src/models/player/Player.tscn @@ -48,7 +48,7 @@ tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { -"times": PoolRealArray( 0, 2 ), +"times": PoolRealArray( 0, 0.9 ), "transitions": PoolRealArray( 1, 1 ), "update": 1, "values": [ true, false ] diff --git a/src/models/player/player.gd b/src/models/player/player.gd index 552638d..f609d5e 100644 --- a/src/models/player/player.gd +++ b/src/models/player/player.gd @@ -68,8 +68,8 @@ func _shoot(): bullet = bullet_preload.instance() bullet.target = target get_parent().add_child(bullet) - bullet.global_position.x = self.global_position.x + 8 - bullet.global_position.y = self.global_position.y + 8 + bullet.global_position.x = self.global_position.x + 12 + bullet.global_position.y = self.global_position.y - 4 func _draw(): if target != null and is_instance_valid(target): @@ -113,7 +113,7 @@ func _physics_process(delta): velocity = move_and_slide(velocity * speed_multiplier) choose_target() - + if target != null and is_instance_valid(target): target.material = outline_material