necra-prototypes/prototype_map.gd
Antonio Dell'Annunziata 2200085897
All checks were successful
/ test (push) Successful in 2s
Make map points reveal on click
2025-03-11 20:29:15 +01:00

19 lines
437 B
GDScript

extends Node2D
func _on_map_point_clicked():
if not $MapPoint2.is_shown_on_map:
$MapPoint2.is_shown_on_map = true
func _on_map_point_2_clicked():
if not $MapPoint3.is_shown_on_map:
$MapPoint3.is_shown_on_map = true
elif not $MapPoint4.is_shown_on_map:
$MapPoint4.is_shown_on_map = true
func _on_map_point_3_clicked():
pass # Replace with function body.
func _on_map_point_4_clicked():
pass # Replace with function body.