Files
wgj26/scenes/levels/level_1.gd
T
sam 61912a7df4 Changing levels
I made it where if you beat phonephreak it moves you to the next level.
2026-10-03 21:55:39 -06:00

17 lines
460 B
GDScript

extends Node2D
@onready var phonephreak = preload("res://scenes/puzzles/phonephreak.tscn")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if GloblaData.doing_puzzle == true:
$player.global_position = $Marker2D2.global_position
func _on_area_2d_body_entered(body: Node2D) -> void:
GloblaData.doing_puzzle = true
var instance = phonephreak.instantiate()
$Marker2D.add_child(instance)