0 votes

how to create 3 parallaclayers

in Engine by (55 points)

1 Answer

0 votes

A good video on the topic: https://youtu.be/j_IhaMwx38E

by (5,278 points)

thanks, but the setscrolloffset function is nonexistent

As far as I can tell it still exists:

http://docs.godotengine.org/en/latest/classes/class_parallaxbackground.html#class-parallaxbackground-set-scroll-offset

Make sure you're writing this code in reference to a ParallaxBackground node.

oops, I put the script on a ParallaxLayer. it works tanhk you.

No problem. ^_^

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.