hero-mark-2/objects/collectibles/arrow.gd
2022-12-17 22:47:46 -05:00

11 lines
225 B
GDScript

extends Node2D
export var value = 1
func _on_Area2D_area_entered(area):
#Collect
if area.is_in_group("player"):
Game.arrows += value
Game.score += 25
Game.play_sound(Game.a_arrow,Game.ac_collectible)
queue_free()