virtualx-engine/demos/2d/space_shooter/rail.gd
Juan Linietsky 9e479065f5 new space shooter demo
ortho camera sort fix, closes #2063
2015-06-11 10:00:48 -03:00

26 lines
281 B
GDScript

extends Node2D
const SPEED=200
# member variables here, example:
# var a=2
# var b="textvar"
func stop():
set_process(false)
var offset=0
func _process(delta):
offset+=delta*SPEED
set_pos(Vector2(offset,0))
func _ready():
set_process(true)
# Initialization here