scrolling 1024 pixel wide background tiles
skipnosis
Member Posts: 21
hello again I'm still a newbie
I'm working on a sidescrolling shooter where the character stays in the center and walks left or right depending on which button you press.
I have six 1024 pixel wide backgrounds of a street (they were originally one 6144 pixel wide photoshop file).
Each one is now an actor and I've placed them end to end in my scene.
I just can't seem to make them all move together as one...
I got a template from GS tech support (THANKS!) which loops one piece/actor of background art but I can't control them all at once -
any help would be most appreciated.
mark
I'm working on a sidescrolling shooter where the character stays in the center and walks left or right depending on which button you press.
I have six 1024 pixel wide backgrounds of a street (they were originally one 6144 pixel wide photoshop file).
Each one is now an actor and I've placed them end to end in my scene.
I just can't seem to make them all move together as one...
I got a template from GS tech support (THANKS!) which loops one piece/actor of background art but I can't control them all at once -
any help would be most appreciated.
mark
Comments
i think i got it basically working -
when you said a spacing of 1024 do you mean just physically laying out the backgrounds so they are end to end or are you talking about doing it in code?
now what's happening is I have two scrolling backgrounds one moving slower behind the main street but sometimes when i reverse direction the front and/or back background layer disappears completely - any ideas of why that would happen?
When I said spacing in the replicate behavior there's a place that says spacing this is how far apart u want the images so to have then connected end to end u space it the size of the image
If that makes sense or I'm I misunderstanding what u r trying to do
now (almost) everything is perfect!
one thing I'm trying to figure out is how to keep the scrolling background from moving past the main character in the middle of the screen at the beginning and end of the level..
if I move the character left (which scrolls the background to the right) it will keep going until the sidewalk is completely gone....
any ideas? thanks a million once again -