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

17 lines
201 B
GDScript3
Raw Normal View History

2014-02-10 01:10:30 +00:00
extends RigidBody2D
# Member variables
var disabled = false
2014-02-10 01:10:30 +00:00
func disable():
if (disabled):
return
get_node("anim").play("shutdown")
disabled = true
2014-02-10 01:10:30 +00:00
func _ready():
get_node("Timer").start()