crabs-game/scripts/UI.gd

6 lines
143 B
GDScript3
Raw Permalink Normal View History

2020-08-20 12:01:19 +02:00
extends Control
func _process(delta):
var origin = get_tree().root.get_viewport().canvas_transform.get_origin()
rect_position.x = -origin.x