2014-02-10 01:10:30 +00:00
|
|
|
|
|
|
|
extends Area2D
|
|
|
|
|
2015-11-21 15:13:43 +00:00
|
|
|
# Member variables
|
|
|
|
var taken = false
|
2014-02-10 01:10:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
func _on_body_enter( body ):
|
|
|
|
if (not taken and body extends preload("res://player.gd")):
|
|
|
|
get_node("anim").play("taken")
|
2015-11-21 15:13:43 +00:00
|
|
|
taken = true
|
2015-10-10 12:09:09 +00:00
|
|
|
|
|
|
|
|
2015-11-21 15:13:43 +00:00
|
|
|
func _on_coin_area_enter(area):
|
2015-10-10 12:09:09 +00:00
|
|
|
pass # replace with function body
|
|
|
|
|
|
|
|
|
2015-11-21 15:13:43 +00:00
|
|
|
func _on_coin_area_enter_shape(area_id, area, area_shape, area_shape):
|
2015-10-10 12:09:09 +00:00
|
|
|
pass # replace with function body
|