Fixed debugger errors in many files and optimized some scenes/code

This commit is contained in:
VoidTwo
2021-12-12 23:55:59 -06:00
parent fc6dfdef4d
commit ef5ce684eb
39 changed files with 657 additions and 740 deletions

View File

@@ -1,18 +1,18 @@
extends Node2D
func _ready() -> void:
#$YSort/Player.position = get_viewport_rect().size / 2
$YSort/Player.position = Vector2(0,0)
$YSort/Player.load_hud($HUD)
$HUD/Control.visible = false
return
$YSort/Player.load_hud($HUD)
return
func _on_Area2D_body_entered(body):
$HUD/Control.visible = true
#print("j")
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()
$BGM1.stop()
$BGM2.play()
return