summaryrefslogtreecommitdiff
path: root/demos/3d/platformer/coin.gd
blob: 8bf1a3460db3ec4875ecd1da8b90fddcd56d5518 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

extends Area

# member variables here, example:
# var a=2
# var b="textvar"


var taken = false


func _on_coin_body_enter( body ):
	if (not taken and body extends preload("res://player.gd")):
		get_node("anim").play("take")
		taken=true


func _ready():
	# Initalization here
	pass