Scrolling background?

This forum is currently in read-only mode.
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • Hi,

    I was using MMF2 Dev for awhile and after just a short time (less than a few hours) with Construct, I believe I'm hooked. I can't believe this thing is free!

    Anyway, I struggled mightly with proper scrolling in MMF2 Dev, but I was able to make this happen easily in Construct using the "Car" movement for the background. BUT, I wanna know how to do scrolling in the way it was intended.

    I'm trying to make one background picture scroll as one character runs across the background:

    Character runs right =========>

    Background moves left <=======

    What Event settings do you use to make this happen?

  • You should check out some tutorials such as the ghost shooter and platform school. They will teach you how to do all the basics in construct.

    As for making scrolling backgrounds just check on center view on me and unbounded scrolling and then construct will make the backgrounds scroll automatically.

  • You should check out some tutorials such as the ghost shooter and platform school. They will teach you how to do all the basics in construct.

    As for making scrolling backgrounds just check on center view on me and unbounded scrolling and then construct will make the backgrounds scroll automatically.

    You don't need unbounded scrolling to scroll. Only if you want to scroll beyond the borders of the layout.

    Anyway, yeah... Platform School is here:

    Be sure to read the big, flashing warning message at the top.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I did the Ghost tutorial exactly... it didn't work. The character moves to the right but the background never scrolls.

    Also, it says to use the Tile object for the background. This makes my background look bad. I'm making a Football game and the background is a complete picture of a crowd of fans. My background has to be one solid picture so the tile effect makes it look awful.

    I ran into these same problems with MMF2.

  • did you put center view on me on?

    is the layout bigger than your screen size?

    also for your crowd did you make it so that it tiles?

  • did you put center view on me on?

    Yep. I followed along with the Swedish gentleman's video.

    is the layout bigger than your screen size?

    Do you mean bigger than my monitor size? No. I have the project set to 1920x1080, and my monitor is 1920x1080.

    also for your crowd did you make it so that it tiles?

    I just selected the Tile object like the tutorial says. Initially last night I put the background in as a sprite and it looked fine, but I took that out because I figured maybe the background is not supposed to be used with the Sprite object? Either way, it didn't scroll as a sprite until I applied the car movement to it, but I got rid of that too because of course that's not the proper way to scroll... but if I can't get it to scroll any other way I may go back to it.

    I'm really confused as to why it's not working.

  • > is the layout bigger than your screen size?

    >

    Do you mean bigger than my monitor size? No. I have the project set to 1920x1080, and my monitor is 1920x1080.

    <img src="http://i50.tinypic.com/o6xph4.png">

    <img src="http://i48.tinypic.com/23sxg92.png">

    You need a layout that is larger than the size of your window in order to scroll. If your level is the same size as your screen, what is there to scroll to?

    (Unless, as mentioned previously, you check Unbounded Scrolling in order to scroll outside the boundary of the layout.)

  • ^^^ Right. Thanks. Let me check that to make sure, I probably didn't set that correctly.

  • Yep, you were right deadeye. I had the window property value set too large. It scrolls now.

    But the one thing I'm still having trouble with is getting the scrolling to start the moment the player moves. It lags a bit and I suppose it's waiting for the character to reach a predetermined spot before the scrolling begins.

    Is there a way to get the scrolling to start immediately as the character moves?

  • Is your player close to the edge of the screen? You could start him in the middle of the layout.

    Or put a check in the box next to the oft-mentioned "Unbounded Scrolling" option in your layout properties.

  • Consider yourself a lucky recipient of the "Deadeye MSPaint thick red lines treatment"

  • Only to be used in emergency situations.

    Patent Pending.

  • Alright, I've got the scrolling working perfectly now. I appreciate the help deadeye, et al. I'm sure I'll have more questions soon

    This software is bringing a smile to my face. It's interesting to see that a number of issues I had in MMF2 seem to be able to be solved much quicker and more efficiently in Construct.

    I'd already built 95% of my game in MMF2 Dev, but you know what I'm going to completely scrap that and port my work over to Construct.

  • I'm kinda in the same boat as you. I understand the scrolling left and right and all that. I'm currently messing around with the free version and I'm almost finished up with this game; it's a plane shooter where you move from side to side and shoot incoming ships from the top. I'm using a backdrop/backgroup of like a mountain terrian. I was wondering is there a way to make the picture itself scroll so it looks like the plane is flying forward. The way I have it now is the plane is just at a stand still but I can move left and right with the arrow keys. I'd like to keep it this way so I can move left and right, but with the background moving it could look like the plane was moving at a forward pace continuously. I hope that makes sense lmao. Please and thank you ahead of time man

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