Scroll Background Question

AtomskAtomsk Member Posts: 2
edited November -1 in Working with GS (Mac)
Hello,

Just started using Game Salad recently and am working on a side scrolling game for the iPhone. Everything is working fine so far except for the background.

My Background file was about 8000x640 (I'm working with the 960x640 iPhone size, but obviously made the width longer to allow it to scroll from off screen). Unfortunately it seems Game Salad won't let me use a size that big.

So I decided to cut my background into 10 smaller images of 960x640 each. I then told the first image (Bg1) to spawn BG2 on creation at the x/y location directly next to it, and then told Bg2 to do the same for BG3 and so on. For the scrolling I told it to move when the player gets to a certain point on the screen.

The scrolling movement itself works great, but I can't get it to spawn/show the background images beyond Bg3. I dunno if it's not spawning them, or if its some sort of Game Salad limitation and won't show them, but they simply won't appear.

Sorry for the long post, just wanted to be thourough because I'd really like some help on this one. Anyone have any good advice or tutorial on how to do scrolling backgrounds? I don't mind scrapping everything I just typed above if there is a much better method to do it.

Thanks in advance.

Comments

  • DimensionGamesDimensionGames PRO Posts: 993
    Scitunes posted this yesterday on a similar thread if it helps:

    make your image so that it can tile (look for photoshop tutorials on how to make your own pattern). Then in the actor attributes panel under graphics set it to tile and just drag the actor as wide as the scene and the image will repeat. This will get rid of the need for dragging multiple actors into the scene.

    cheers
  • AtomskAtomsk Member Posts: 2
    Hello,

    Is there any way around that issue then of 10 images being too much? Perhaps instead making it so each image is it's own scene that loads when you reach the other side of the screen? I mean, I'd much rather it scroll but if that means cutting down my level then I'd rather take another approach, since the level design is already finished and ready to go.

    Thanks for the help so far, I'm still new to game salad and iPhone gaming in general so I apologize if I'm not aware of this stuff, still learning.
  • LBGLBG Member Posts: 277
    PossesiveGaming said:
    Scitunes posted this yesterday on a similar thread if it helps:

    make your image so that it can tile (look for photoshop tutorials on how to make your own pattern). Then in the actor attributes panel under graphics set it to tile and just drag the actor as wide as the scene and the image will repeat. This will get rid of the need for dragging multiple actors into the scene.

    cheers

    I have tried this but as the end of the image exits the screen the last little bit of it dissappears and leaves a black bar just before it exits. Has anyone else found this or maybe have suggestions as to what I might be able to do to remedy it.

    Cheers
  • AppsRacKAppsRacK Member Posts: 346
    Forget the 10 images. Lay out your scene on photoshop. Seperate Background, to foreground and use tile image on your platform. You'll be surprise how fast your scene will load. Also on your Background no need to use 10 images just use 2 and cycle them as your character walks by. The same rules apply on some layers (clouds, mountain, platform, etc.).

    Go Green!!!

    -drahc
  • LBGLBG Member Posts: 277
    Just a quick post to say I have fixed it. I checked the image size and scene size and they didn't match. I changed the values and hey presto....
Sign In or Register to comment.