Problem with moving background

BasGoodboyBasGoodboy Member, PRO Posts: 310
edited September 2013 in Working with GS (Mac)
Hey all, I have a moving clouds background in my game which keeps coming back via de x wrap.

The picture is perfectionised so the player shoudn't see a miserror in the cloud, if i put the front and back in photoshop after eachother, it looks smooth.

On GS Creator preview, it looks smooth too, altho.. when AdHoc testing, i see a very thin line of 1px width which seem to border the background when wrapping.

You can see what I mean in the next screenshot:
image

Any idea how to solve this?

Best regards,

Goodboi Gamestudios | Monster Jumper now on the App Store

Comments

  • KevinCrossKevinCross London, UKMember Posts: 1,894
    I saw this post a little while ago which might have a solution for you.

    http://forums.gamesalad.com/discussion/58732/tiling-leaving-seams
  • BasGoodboyBasGoodboy Member, PRO Posts: 310
    @KevinCross not helping, they're talking about making objects in 2-ish pixels ending like width 220x440 in stead of 219x439 but that's not the issue in my clouds picture, my clouds picture is just 320x480 for iphone legacy.

    Really wonder why the line is there.

    Goodboi Gamestudios | Monster Jumper now on the App Store

  • KevinCrossKevinCross London, UKMember Posts: 1,894
    Oh ok, I just remember seeing the same thing in the screenshot that member uploaded. Good luck sorting it.
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    No idea why it's happening but can't you just move the image on left over 1 pixel to take the line out?
  • mataruamatarua Auckland, New ZealandMember Posts: 854
    The issue is the clouds are moving - if they are moving at 0.XXXXX pixels at a time you will see the line perhaps due to imperfect scroll matching. Flat non moving tiles (camera moves past or single page) don't have problems with this.

    The way I would do it is to have a cloud image that is a fairly large image say 1024 wide by 512 high. Then bring that on stage and you can scale it much larger than it already is as it is just some mushy soft faint clouds in the background.

    With your clouds make them have transparent sides with no sharp edges.

    Then recycle them as normal and make them overlap a bit so you get the effect they are always changing.

    Send them back to a random position (within reason) and make them move at a random speed (within reason) and you will get an organic cloud pattern with zero tile issues.

    And if the pixels are bigger with your style that could look cool too.

    You would also get rid of that obvious mirror going on.

    I hope this helps :)

    Cheers, M@
  • BasGoodboyBasGoodboy Member, PRO Posts: 310
    @matarua I'm very glad you have a solution, but..

    I'm trying to understand you but don't understand a line you mean.

    Transparant sides with no sharp edges?
    Reclycing them as normal and make them overlap a bit?
    Send hem back to a random position?

    I'm still quite of a noob in GameSalad im afraid and don't understand what you mean..

    Hope to hear from you.

    Goodboi Gamestudios | Monster Jumper now on the App Store

Sign In or Register to comment.