summaryrefslogtreecommitdiff
path: root/demos/2d/dynamic_collision_shapes/ball.gd
blob: c17b20f9c87cda0fbdb570e737859ca0d30ca0a4 (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 timeout=5

func _process(delta):
	timeout-=delta
	if (timeout<1):
		set_opacity(timeout)
	if (timeout<0):
		queue_free()
func _ready():
	set_process(true)
	# Initialization here
	pass