Files
godot-demo-projects/2d/platformer/bullet.gd
2017-11-11 19:53:14 -08:00

9 lines
175 B
GDScript

extends RigidBody2D
func _on_bullet_body_enter( body ):
if body.has_method("hit_by_bullet"):
body.call("hit_by_bullet")
func _on_Timer_timeout():
$anim.play("shutdown")