summaryrefslogtreecommitdiff
path: root/demos/2d/platformer/bullet.gd
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-02-09 22:10:30 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-02-09 22:10:30 -0300
commit0b806ee0fc9097fa7bda7ac0109191c9c5e0a1ac (patch)
tree276c4d099e178eb67fbd14f61d77b05e3808e9e3 /demos/2d/platformer/bullet.gd
parent0e49da1687bc8192ed210947da52c9e5c5f301bb (diff)
GODOT IS OPEN SOURCE
Diffstat (limited to 'demos/2d/platformer/bullet.gd')
-rw-r--r--demos/2d/platformer/bullet.gd20
1 files changed, 20 insertions, 0 deletions
diff --git a/demos/2d/platformer/bullet.gd b/demos/2d/platformer/bullet.gd
new file mode 100644
index 0000000000..6836116aa4
--- /dev/null
+++ b/demos/2d/platformer/bullet.gd
@@ -0,0 +1,20 @@
+
+extends RigidBody2D
+
+# member variables here, example:
+# var a=2
+# var b="textvar"
+
+var disabled=false
+
+func disable():
+ if (disabled):
+ return
+ get_node("anim").play("shutdown")
+ disabled=true
+
+func _ready():
+ # Initalization here
+ pass
+
+