Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends ParallaxBackground
- # class member variables go here, for example:
- # var a = 2
- # var b = "textvar"
- func _ready():
- $ParallaxLayer.motion_mirroring = $ParallaxLayer/Sprite.texture.get_size().rotated($ParallaxLayer/Sprite.global_rotation)
- func _process(delta):
- var scroll = Vector2(0, 3)
- self.scroll_offset += scroll
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement