Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Gaps between images

LBGLBG Posts: 277Member
edited November 2011 in Working with GS (Mac)

I have 4 background images that cover an area of 960x640. The cameras movement is constrained to the player character which can move freely around these images. What I am getting is gaps between the background images that appear as black lines.

I have set the position of the images inside the actors themselves so that I know they are butting up to one another yet I still see lines.

Does anyone know why this may be happening and a fix for it?

Thanks all,



  • Braydon_SFXBraydon_SFX Posts: 8,977Member, Sous Chef, PRO, Bowlboy Sidekick GameSalad Employee
    Why don't you just make a background image that is 960x640 that would fix it. :-)
  • LBGLBG Posts: 277Member
    The individual images are that size but in the engine they are resized to 480x320 (I am using resolution independence). The entire BG png is 1920x1280 which covers an area of 960x640 in Gamesalad.


  • POMPOM Posts: 2,599Member
    I had the same issue in my current project, what I did is to add 4 transparent pixels on the left side of the image, meaning I made (in photoshop) a new image with size : 964x640 and put my background at the right side, leaving 4 pixels at the left,
    Then in the project I made my background actors to 482x320 , and it resolved the black lines.

    Now, because the width is changed to 482, I moved my actor a pixels to the left, so it's X position is 239 instead of 240, same goes for the rest of the backgrounds actors along the scene, a pixel to the left.
    It's a nasty workaround but what can we do...

  • LBGLBG Posts: 277Member
    Thanks Roy. I'll try this :)
  • LBGLBG Posts: 277Member
    Unfortunately this doesn't work :(

  • HymloeHymloe Posts: 1,651Member
    Since upgrading to 0.10.0, I'm getting a think black or grey line on the edges of my tiles.

    I've got an 8x8 grid of tiles, and I read the images in from a table as I move my character around.

    It was working fine in 0.9.94 10 minutes ago.

    Now I've upgraded, and I have this thin black line spoiling everything.

    Can it be fixed by changing the Stretch/Fixed/Tile attribute for the actor or something?

    Anyone had the same problem and fixed it?

    I thought it was just a gap between the images, a problem that I'd had before, and already fixed by simple making the actors about 4 pixels larger than they need to be, therefore overlapping slightly and covering the gap. All good. But now, even though the images are overlapping, there'a a thin line.

    Even if I make them overlap by 20 pixels there's a black line.

    I tried making the too small, so there's a gap between every actor, and I can see the line on the edge of each actor. So it's not to do with a gap, or overlap, it's actually some sort of unwanted line being drawn on the edge of the actors.

    And it's not in the art, because they're all flat colors, and we were 100% fine in 0.9.94.

    - Murray

  • TheGabfatherTheGabfather Posts: 633Member
    @Hymloe I posted an inquiry about something like that the other day, but failed to get a reply so I thought it was just my version of Windows Creator acting up. I have screenshots put up here:

    We getting the same problem? For me it comes and goes.. temporary but bad solution was to keep deleting and exporting the images until they'd go away then I stopped touching them.

    0011 0010 0011 0010 0010 0000 0110 1101 0010 0000 0111 0011 0110 1001 0110 1110 0110 0111 0110 1100 0110 0101

  • RoksaltRoksalt Posts: 87Member
    edited May 2013
    I am also getting small lines between my images despite the fact that they look perfect in photoshop. It seems to not matter if the image has transparency or not.

    Not sure if would it make a difference if the image was interlaced or not?

    I have come across this issue before however not in several projects [it really does seem random].

    I would love any type of fix for this

    Quality & Affordable iOS, Android & Mac Developers:

This discussion has been closed.