6 lines
145 B
GDScript3
6 lines
145 B
GDScript3
|
extends Sprite2D
|
||
|
|
||
|
func _process(_delta):
|
||
|
region_rect.size = Vector2.ONE * 2000
|
||
|
get_parent().get_parent().offset = get_viewport_rect().size / 2
|