From 0d31b1a2bd4658263d957971a3877ef30383eac2 Mon Sep 17 00:00:00 2001 From: perivesta <> Date: Sat, 8 Jul 2023 21:41:51 +0200 Subject: some bug fixes --- Scripts/Checkpoint.gd | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Scripts/Checkpoint.gd') diff --git a/Scripts/Checkpoint.gd b/Scripts/Checkpoint.gd index ed10f74..d8c671e 100644 --- a/Scripts/Checkpoint.gd +++ b/Scripts/Checkpoint.gd @@ -8,7 +8,12 @@ var was_visited = false func set_was_visited(visited: bool): was_visited = visited + if(visited): + hide() + else: + show() # TODO change the sprite to indicate the change func _on_area_2d_body_entered(body): + hide() set_was_visited(true) -- cgit