diff options
author | perivesta <> | 2023-07-09 15:45:42 +0200 |
---|---|---|
committer | perivesta <> | 2023-07-09 15:45:42 +0200 |
commit | 0c0674dc05d71ab156b7077f4415b78135d7c1cc (patch) | |
tree | f2cd3f6ced34539e0b6de4ad43aa7b492821e1b2 /Scripts/Checkpoint.gd | |
parent | 5b1a456768f0072e10577f52914898473385e72b (diff) | |
download | 2023-0c0674dc05d71ab156b7077f4415b78135d7c1cc.tar.gz 2023-0c0674dc05d71ab156b7077f4415b78135d7c1cc.tar.bz2 2023-0c0674dc05d71ab156b7077f4415b78135d7c1cc.zip |
more sprites
Diffstat (limited to '')
-rw-r--r-- | Scripts/Checkpoint.gd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Scripts/Checkpoint.gd b/Scripts/Checkpoint.gd index d8c671e..565afef 100644 --- a/Scripts/Checkpoint.gd +++ b/Scripts/Checkpoint.gd @@ -3,15 +3,15 @@ extends Node2D var was_visited = false -@onready var sprite : Sprite2D = $Sprite2D - func set_was_visited(visited: bool): was_visited = visited if(visited): - hide() +# $Sprite2Dopen.hide() + $Sprite2Dclosed.show() else: - show() + $Sprite2Dclosed.hide() +# $Sprite2Dopen.show() # TODO change the sprite to indicate the change func _on_area_2d_body_entered(body): |