How to pin closer background objects in place

  • Total newbie here -- I checked the FAQ and didnt see this there.

    So I have background 0 - 2 (Mountains, Trees, Flowers) ..each getting closer with a different parallax.

    But my trees and flowers dropdown from where I place them as my platformer dude jumps around.

    I know PIN behavior is not what I want... help?

    Here are two images - first one is the editor and where I would like to STICK my trees and flowers and the second is what happens when I run.

    <img src="http://toddvance.com/games/screens/sinking.png" border="0" />

    <img src="http://toddvance.com/games/screens/sunken.png" border="0" />

  • Set the second value to 0, that will prevent the y axis from moving when the camera is moved along the y axis.

  • Thank you for the reply, but that puts the images at the top of the screen.

    Check out the newly added screenshots. This will probably illuminate my situation. Maybe I am going about this all wrong...?

  • GOT IT!!! I dont want to change the Parallax vertical NUMBER for my side-scroller(doh - slaps forehead)!

    I want it to stay in place vertically so my 3 background layers will have their parallax values set to something like this ( 20,100 | 50,100 | 80, 100 ) ...

    <img src="smileys/smiley32.gif" border="0" align="middle" />

  • Woops, got that backwards. Sorry!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Well you definitely got me thinking about that which led me to getting it so thanks a ton!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)