virtualx-engine/demos/2d/platformer/bullet.gd

17 lines
201 B
GDScript3
Raw Normal View History

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