How do I make the background move when jumping onto platforms?

0 favourites
  • 4 posts
From the Asset Store
A pack of 76 platform designs for a platformer game with a mushroom/jungle theme
  • This is what I've tried so far.

    • I created a background (Height 7806px and width is 640px)
    • Used a background tile object, placed it and then scaled to the game size (720x1280).
    • Then changed the image offset Y to -6700 which shows the bottom of the image.

    Is the game events I created a action for Tick and the background Y Offset would move when the character jumps. But it doesn't move.

    So far have I done this correctly?

    I would like the background to move when the character slightly reaches the top and if they miss and fall the background will move with the character and reset.

    Any help or guidance would be appreciated.

  • I am not sure I understand your question, but it seems like you are looking for parallax effect. Place your background on a separate layer and adjust its parallax setting. You can even use negative parallax values to move the background in the same direction with the scroll.

  • Hi Dop,

    Thanks for coming back to me.

    Really sorry for the horrible explanation.

    Simply I have a background which I've designed on photoshop and the height is 7806px and width is 640px.

    The game canvas size is 720x1280 and I scaled the background to that size. The idea I have is when the user jumps higher the background moves. Apologies if that's a repeat of what I wrote before that's as simple as I can explain it.

    With the parallax effect what settings would I use to make it so when the user gets to the top of the platforms it moves.

    Below is the full view of the game in portrait mode. So the user will only see 720x1280 and when they slightly reach the top platform the background moves slowly slowly to match that. New platforms forms once they reach the top.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can you make two backgrounds? One can be a sprite (trees), and another a TiledBackground object (pillars and clouds). You can stretch the TiledBackground vertically as much as needed.

    So if the player jumps higher than trees, they will still see the second background with clouds.

    You can also put these backgrounds on different layers with different parallax for a nice visual effect.

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