-
Looping backgrounds?
When you do paralax scrolling layers, you are given the option of wrapping the layer at the X or Y coordinates. What does this do? I assume that this particular feature would have something to do with looping or scrolling backgrounds such as to suggest a moving bus or train. I was also going to ask how you'd achieve that [looping background] effect in MMF2D?
-
Re: Looping backgrounds?
[]When you do paralax scrolling layers, you are given the option of wrapping the layer at the X or Y coordinates. What does this do? I assume that this particular feature would have something to do with looping or scrolling backgrounds such as to suggest a moving bus or train. I was also going to ask how you'd achieve that [looping
background] effect in MMF2D? [/]
What it does is what it says pretty much, it repeats the background over and over and over, like in most games, so you can save in memory by not making huge graphics. You just have to make sure your graphic loops seemlessly.
-
Re: Looping backgrounds?
That's cool, but that only works if the character in the foreground is moving. I want the background to move even if the character is standing still, such as on a bus, train or other moving vehicle.
-
Re: Looping backgrounds?
You could make the object wrap around the screen? Like if the bus leaves the left side of screen - >Wrap, the bus will show up on the right side. Use the Ball Movement and pick only the direction you want the bus to move.
Another could be the layer object, but I am not sure if you can move layers using it...
Hope it helps
-
Re: Looping backgrounds?
Use a Background System Object for moving large backdrops constantly.
-
Re: Looping backgrounds?
To expand on that, yes, use a Background System Box. I'm going to assume that you're using a low resolution (ie, 320x240)
Event Editor, make a group called "PARALLAX"
---
Group "PARALLAX" is activated:
-Set width to 640, height to 240
-Set X position to X Left Frame - (Alterable Value A of BGS)
-Set Y position to Y Top Frame
-Add 1 to Alterable Value A BGS
Alterable Value A of BGS = 320
-Set Alterable Value A to 0
---
Bingo! A scrolling backdrop! That should do the trick.
-
Re: Looping backgrounds?
Insert the "Layer object" in your frame. With that you can move layers separately. Thus you can make the background move without scrolling the foreground.