[ad_1]
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Anybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
Asked
Viewed
6 times
\$\begingroup\$
i got this error identifier “GameManager” is not declared in the current scope
extends Node2D
class_name Checkpoint
@export var spwanpoint = false
var activated = false
func activate():
GameManager.current_checkpoint = self
activated = true
$AnimationPlayer.play("activated")
func _on_area_2d_area_entered(area):
if area.get_parent() is Player && !activated:
activate()
\$\endgroup\$
default
[ad_2]