summaryrefslogtreecommitdiff
path: root/demos/2d/platformer/bullet.gd
blob: 9aacc9809dd41ffb7f0d86370b8abd8bbf31f451 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

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
	get_node("Timer").start()
	pass