Tilebackround problem.

This forum is currently in read-only mode.
  • I have this problem with tileable backrounds. The ground and backround is made tiles and it looks like this:

    <img src="http://bayimg.com/image/malfgaabh.jpg">

    But when I move character and the screen moves tiles are torn apart leaving this 1 pixel cap between them:

    <img src="http://bayimg.com/image/malfiaabh.jpg">

    What could cause this problem?

    Thanks.

  • Floating point coordinates. If you want to keep the gaps from showing up, add an event:

    Always

    scroll to x: round(scrollx)

    scroll to y: round(scrolly)

    Either that or make them all overlap slightly (a pixel or two) if you want to keep the smooth scrolling.

    Edit: It might not work if you're using the 'center screen' attribute. In that case you'll have to use:

    Sprite: set x to round(sprite.x)

    Sprite: set y to round(sprite.y)

    Edit 2: whoops, thought you said sprites - right, overlapping the tiled backgrounds won't work, but the rounding still will.

  • This is a very frequently reported problem... Tiled backgrounds should be modified so that the gaps don't show.

    Btw. Is there a way to rotate tiled backgrounds? And rotate the texture itself? Those would be nice to have.

  • Hmm, this has been reported a lot lately, I'll definitely try and sort something out for the next build.

  • This should be fixed in the next build. In future, if you want to be 100% certain that your tiled backgrounds won't seam, use a power-of-two sized texture in the tiled background (eg. 32x32, 64x64...)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • This should be fixed in the next build. In future, if you want to be 100% certain that your tiled backgrounds won't seam, use a power-of-two sized texture in the tiled background (eg. 32x32, 64x64...)

    Thanks..

    I'll probably resize my platform tiles and add that trick suggested by Arima for the background.

    It's so great when Construct developers hang out here and actually listen users succestions and actively develope Construst further.

  • Thanks for looking into this Ashley. I'm highly anticipating this fix.

    Hmm, this has been reported a lot lately

    I think it's just because more and more people have stopped messing around with Construct, and are starting to actually make games. Which is awesome

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)