1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
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