godot/demos/2d/platformer/bullet.gd

17 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()