forked from team-sg/hero-mark-2
11 lines
225 B
GDScript
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()
|