GrappleTest/Tilemaps/Scripts/ParralaxBG.gd

6 lines
145 B
GDScript3
Raw Normal View History

2024-03-13 16:15:55 -05:00
extends Sprite2D
func _process(_delta):
region_rect.size = Vector2.ONE * 2000
get_parent().get_parent().offset = get_viewport_rect().size / 2