scrolling 1024 pixel wide background tiles

skipnosisskipnosis Member Posts: 21
edited November -1 in Working with GS (Mac)
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

Comments

  • jstrahanjstrahan Member Posts: 498
    All u need is one put your move rule in and whatever else then add a replicate rule to this actor with how many copies and a spacing of 1024
  • skipnosisskipnosis Member Posts: 21
    thanks j...

    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?
  • jstrahanjstrahan Member Posts: 498
    Check all ur rules if you delete an attribute it leaves a rule in the programming with no value or left a () off gs doesn't know what to do and images will disappear

    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
  • skipnosisskipnosis Member Posts: 21
    yep I had a setting incorrect...

    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 -
  • jstrahanjstrahan Member Posts: 498
    put an invisible actor in path and have the background move only if player is not touching invisible actor
Sign In or Register to comment.