Compare commits

...

1 Commits

Author SHA1 Message Date
William Tumeo
ed9494f251 free coin in 3D platformer
(cherry picked from commit 76bfb10deb)
2016-11-16 19:17:44 +01:00
3 changed files with 6 additions and 0 deletions

View File

@@ -9,3 +9,9 @@ func _on_coin_body_enter(body):
if (not taken and body extends preload("res://player.gd")):
get_node("anim").play("take")
taken = true
func _on_anim_finished():
if get_node("anim").get_current_animation() == "take":
queue_free()

Binary file not shown.

Binary file not shown.