19 lines
329 B
GDScript
19 lines
329 B
GDScript
extends Node2D
|
|
|
|
|
|
func _ready() -> void:
|
|
$YSort/Player.load_hud($HUD)
|
|
return
|
|
|
|
|
|
func _on_journal_page_body_entered(body: Node) -> void:
|
|
if body.is_in_group('player'):
|
|
$'HUD/Journal Page Dialogue'.visible = true
|
|
return
|
|
|
|
|
|
func _on_Camera2D_enter_portal() -> void:
|
|
$BGM1.stop()
|
|
$BGM2.play()
|
|
return
|