Home    LittleBigPlanet 1 - PSP - Tearaway -Run Sackboy Run    LittleBigPlanet 1    [LBP1] Help! [Archive]
#1

Scrolling Backgrounds - What's the Best Technique?

Archive: 14 posts


Hello again, everyone. Been taking a break from LBP with all these great games that came out on Xbox and PS3 over the holdidays, but LBP has drawn me back like a hobo to a shopping cart.

I've been wanting to do a level with a scrolling background. Something that imitates horizontal movement, but in reality is just a background swiftly moving to the left. I think I've seen a level or two where this was done, but I'm not sure.

I tried setting up a conveyor system. Above the normal view area, there are two horizontal rows of rubber cylinders that form a conveyor. Enough space lies between the two so that I have one fat layer piece of rubber able to squeeze through it. Attached to that is a wafer thin layer that drops down into the normal view area. So the rollers (cylinders) move the piece of rubber along to the left, and since the wafer thin background is attached to that, it moves along to the left. An emitter is setup to emit these background objects one after the other. So far so good.

The problem is that no matter how much I tweak the frequency, there always appears to be a space. The most narrow I can make the space is about the length of two sackboys standing next to each other.

Has anyone found a good way to do this?

Thanks,
Justin
2009-01-18 16:13:00

Author:
Justin Hopewell
Posts: 135


Cant you just have a block with a camera on attatched to piston? Then the camera wont stop moving and nothing else will have to move.2009-01-18 16:52:00

Author:
moleynator
Posts: 2914


Cant you just have a block with a camera on attatched to piston? Then the camera wont stop moving and nothing else will have to move.

Maybe you could expand on what you mean... I don't quite follow you.

Just to reiterate, I'm talking about having a left-scrolling background while everything else is stationary, making it appear as if the ground you're standing on is moving to the right, when in actuality its not moving anywhere.
2009-01-18 17:37:00

Author:
Justin Hopewell
Posts: 135


have the emitters set up one after the other as like a umm... well set it up so that as one is leaving, and as soon as the previous backround leaves the space the other one is supposed to fall in, it instantly appears,

scratch that, how fast do you have the respawn time set up? if it is .5 seconds, then great, and if you are still getting that space inbetween, then i suggest you make the rollers go slower (the conveyor belt) so that there is less of a space. What is happening is that the previous object leaves the space but that .5 second deficit is still too slow because the other one is already too far away (you follow) so all you have to do is make the conveyor slower.

Cheers!
2009-01-18 18:06:00

Author:
RAINFIRE
Posts: 1101


Never mind what I said.

I thought you meant a proper side scroller, like the skulldozer.
2009-01-18 18:17:00

Author:
moleynator
Posts: 2914


Use two emitters. Set the first so it emits a background that goes x fast and only emits once, and set the second so it emits the same background going slightly faster than x, and it doesn't stop emitting. That way it will catch up and "push" into the back of the first background. Also, be sure to set the first background's strength (on the piston or motor or whatever you're using) to 10, while the second background's strength needs to be 8 or 9. That way it doesn't push the first background too fast, and cause gaps.2009-01-18 19:50:00

Author:
ConfusedCartman
Posts: 3729


have the emitters set up one after the other as like a umm... well set it up so that as one is leaving, and as soon as the previous backround leaves the space the other one is supposed to fall in, it instantly appears,

scratch that, how fast do you have the respawn time set up? if it is .5 seconds, then great, and if you are still getting that space inbetween, then i suggest you make the rollers go slower (the conveyor belt) so that there is less of a space. What is happening is that the previous object leaves the space but that .5 second deficit is still too slow because the other one is already too far away (you follow) so all you have to do is make the conveyor slower.

Cheers!


I tried to make a conveyor belt without any space between the scrolling panels on it and it's impossible. (or didn't figure out some out of the box way).
No matter the speed my wheels are turning vs what the emitter time is set to, there's always some space. Right now with wheels rolling at 11 and the emitter timer at 0.1 I still have a Sackboy leg's worth of space between my panels.

As for the ConfusedCartman solution, won't you get space again starting at the third emission? You would need a chain of emitters if you want to spawn more than 2 background panels perfectly...

.
2009-01-19 06:43:00

Author:
RangerZero
Posts: 3901


As for the ConfusedCartman solution, won't you get space again starting at the third emission? You would need a chain of emitters if you want to spawn more than 2 background panels perfectly...
Nope, because the first one will slow down the others once they hit the first panel. That's the point of the strength setting I mentioned, to ensure the panels do not cause the first one to go faster.
2009-01-19 07:12:00

Author:
ConfusedCartman
Posts: 3729


I have a bit of trouble understanding what cartman means, but I've heard good results if you "shoot" the newly spawned block a bit faster than the conveyor runs (set the linear velocity at something). That way the new block gets shot agains the existing one, eliminating the gap. Set the frequency to 0.1, the earlier emitted block will prevent the new one from emitting because there is not enough space to emit the new one.2009-01-19 08:12:00

Author:
Wyth
Posts: 263


Nope, because the first one will slow down the others once they hit the first panel. That's the point of the strength setting I mentioned, to ensure the panels do not cause the first one to go faster.

hmmm...

I will try your solution then!
2009-01-19 18:14:00

Author:
RangerZero
Posts: 3901


Gilgamesh wrote a guide to a technique he used in a level of his which sounds like what you are looking for. He is refining the technique as well, but from the level he has it's quite smooth already. The guide can be found here (https://lbpcentral.lbp-hub.com/index.php?t=t=4475). It was just buried in the Showcase section. 2009-01-19 20:31:00

Author:
Elbee23
Posts: 1280


Thanks for all the suggestions and the link everyone. I'll try these out and if I get it working, I'll let you know.2009-01-21 20:54:00

Author:
Justin Hopewell
Posts: 135


Hey, I just read this post and looks like there are some suggestions similar to the one im about to make but here goes anyways!

Can you not make the emitter drop the piece of background onto the rollers but make the first few rollers a bit faster than the rest, that way when the background falls down it is pressed up against the previous piece...

Hope this helps and will be intrigued to hear what you find out as this is something which has crossed my mind a couple of times!!
2009-01-22 21:10:00

Author:
turnipeater
Posts: 83


Since this thread is popping back...

I tried Confused Cartman's solution and it's working perfectly.

.
2009-01-22 22:01:00

Author:
RangerZero
Posts: 3901


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.