diff options
author | perivesta <> | 2023-07-08 21:41:51 +0200 |
---|---|---|
committer | perivesta <> | 2023-07-08 21:41:51 +0200 |
commit | 0d31b1a2bd4658263d957971a3877ef30383eac2 (patch) | |
tree | 2dcc4a9d10d2ca3c90c55865799a46414abf3336 /Scripts/Checkpoint.gd | |
parent | 9d03b489eedeb69b1330e6b627400d853dd7547a (diff) | |
download | 2023-0d31b1a2bd4658263d957971a3877ef30383eac2.tar.gz 2023-0d31b1a2bd4658263d957971a3877ef30383eac2.tar.bz2 2023-0d31b1a2bd4658263d957971a3877ef30383eac2.zip |
some bug fixes
Diffstat (limited to 'Scripts/Checkpoint.gd')
-rw-r--r-- | Scripts/Checkpoint.gd | 5 |
1 files changed, 5 insertions, 0 deletions
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) |