Seeking assistance with scrolling background and platforms in Construct 3

0 favourites
  • 5 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • Dear Construct Community,

    I hope this message finds you well. I'm reaching out for your expertise and kindness in helping me solve a challenge I'm facing in my game development journey with Construct 3.

    I'm currently working on a game using the latest web version of Construct 3, and I've encountered a hurdle with implementing a scrolling background with platforms. Here's what I'm aiming to achieve:

    1. I need the background and platforms to move downwards in unison, creating an illusion of the player ascending.

    2. The scrolling doesn't need to be infinite or looping.

    3. I'm looking for a simple and efficient method that functions reliably in the web version of Construct 3.

    In my attempts to solve this, I've tried:

    - Manipulating layers and controlling their Y position

    - Utilizing the Scroll To behavior

    - Creating a container object and moving all elements together

    Unfortunately, these approaches haven't yielded the desired results. The elements either remain stationary or move inconsistently.

    I would be immensely grateful if anyone could suggest a straightforward, dependable method to achieve this scrolling effect. I'm open to exploring solutions involving Tiled Backgrounds, sprites, or any other objects that might be more suitable for this purpose.

    Your time, knowledge, and any assistance you can provide are truly appreciated. Thank you in advance for your help and for being part of this supportive community.

  • Are you talking about parallax? If so then theres a Layer setting where you can change it's Parallax scroll, so for example if it was 50% x 50%, it would scroll half as far as the camera.

    Or are you talking about simply having the background scroll down? If so you could use a Sine behavior set to Sawtooth, meaning it will infinitely move in a scrolling-like motion

  • Are you talking about parallax? If so then theres a Layer setting where you can change it's Parallax scroll, so for example if it was 50% x 50%, it would scroll half as far as the camera.

    Or are you talking about simply having the background scroll down? If so you could use a Sine behavior set to Sawtooth, meaning it will infinitely move in a scrolling-like motion

    Thank you so much for your quick and helpful response! I really appreciate you taking the time to explain these methods.

    I'd like to clarify my specific needs a bit further:

    I have a single layer containing multiple images and platforms. What I'm trying to achieve is to control all these elements simultaneously, making them move downwards on the Y-axis automatically with each frame. Despite trying various approaches, I haven't been able to find a method that works for this specific setup.

    Given this context, do you have any suggestions for how I might implement this kind of coordinated movement for multiple objects within a single layer? I'm looking for a solution that doesn't require separating these elements into different layers or using parallax effects.

    Thank you again for your help, and I apologize if I wasn't clear enough in my initial question. Any further advice would be greatly appreciated!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'd like to clarify my specific needs a bit further:

    I have a single layer containing multiple images and platforms. What I'm trying to achieve is to control all these elements simultaneously, making them move downwards on the Y-axis automatically with each frame. Despite trying various approaches, I haven't been able to find a method that works for this specific setup.

    A few ideas you could do:

    1-Put all the objects in a Family and then just set the "Family.Y" Position to move the objects.

    Or

    You can also add some behaviour to the family like the Bullet and set the speed and let it run automatically.

    2-Another idea will be to create an object and name it for example "Scrolling_BG"

    -Add all the objects from the layer that you need to scroll to a Hierarchy with "Scrolling_BG" and make the "Scrolling_BG" as Parent

    -And set the objects to just Transform the Y on their Hierarchy settings

    -Move your Scrolling_BG.Y manually every tick or add a behaviour like a bullet. This will make scroll all the objects in the hierarchy together with their Parent.

  • Do mean something like this?

    I added a sprite called "camera" and gave it the Scroll To and Bullet behaviours, then set it off travelling up the layout.

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