frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

Multiple layer of parallaxing backgrounds?

I realize there is only one background layer, but what is the best way to fake having multiple? how can I have some hill objects with slightly higher "parallax" than the sky and clouds background?
Tagged:

Comments

  • There is no way to do this without building a behavior for it.

    You could have the clouds in the actually aground layer and then have the mountains in the game world layer, then give them some kind of behavior that mimics it.

    The main way I can think of doing this would be by extracting the players X velocity and then having the mountains move at (the players X)*0.5 or something like that. I'm not sure that exactly would work but you probably need to do something like that.
Sign In or Register to comment.

flowlab.io

| make games in your browser
@ 2017 Flowlab.io, All rights reserved.

Contact us

Get In Touch