diff options
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) |