extends Sprite

# class member variables go here, for example:
# var a = 2
# var b = "textvar"

func _ready():
	# Called every time the node is added to the scene.
	# Initialization here
	pass

func _process(delta):
	#var trans = get_viewport_transform().origin
	#var trans = get_canvas_transform().origin
	#offset = trans
	#var trans = $"..".motion_scale * -$"../..".scroll_offset;
	var trans = $"..".motion_scale * $"../..".scroll_offset;
	region_rect.position = trans
	#print(str("Global pos ***: ", trans.x, " ", trans.y))
	# Called every frame. Delta is time since last frame.
	# Update game logic here.
	pass
