summaryrefslogtreecommitdiff
path: root/Scenes/Components/MapArea.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Scenes/Components/MapArea.gd')
-rw-r--r--Scenes/Components/MapArea.gd6
1 files changed, 5 insertions, 1 deletions
diff --git a/Scenes/Components/MapArea.gd b/Scenes/Components/MapArea.gd
index 31e567a..080a3f7 100644
--- a/Scenes/Components/MapArea.gd
+++ b/Scenes/Components/MapArea.gd
@@ -1,6 +1,8 @@
extends Area2D
+signal transitioned_to
+
@export var can_plant_bomb: bool = true
@@ -80,13 +82,15 @@ func _on_player_entered(player: Player):
position_tween = get_tree().create_tween()
position_tween.tween_property(
- player, "global_position", player.global_position + player.DIRECTION * 16, 1.25
+ player, "global_position", player.global_position + player.DIRECTION * (16 + 8), 1.25
)
position_tween.tween_callback(func():
exited_area.get_node("TileMap").visible = false
sprite_tween.kill()
sprite.play("idle_" + sprite_direction)
exited_area.set_collision_mask_value(Utilities.Collision.Layer.PLAYER, true)
+
+ transitioned_to.emit()
)
Global.last_area = self