virtualx-engine/demos/2d/platformer/bullet.gd
2015-12-09 08:39:12 +01:00

16 lines
201 B
GDScript

extends RigidBody2D
# Member variables
var disabled = false
func disable():
if (disabled):
return
get_node("anim").play("shutdown")
disabled = true
func _ready():
get_node("Timer").start()