0 Favourites

Tiling problem

This forum is currently in read-only mode.
  • Hey.

    I did a quick search for this but couldn't find anything.

    So I started making a platformer, made basic 44x44 collision tiles for the map, set grid to 44x44 and enabled snap to moving-resizing as well and made this quickie:

    <img src="http://farm4.static.flickr.com/3540/3689728715_8fc21cfdf4.jpg">

    And when I run it, it (for some reason) turns into this:

    <img src="http://farm4.static.flickr.com/3564/3689730037_1b701d7717.jpg">

    Any ideas on how to fix this?

  • Tried switching to point sampling?

    Go to application properties, under Runtime Properties set Sampling to Point.

    In construct everything is either sampled with linear or point.

    If that doesn't fix it, I'd suggest you post a sample .cap file we can have a look at.

  • I had same shit doing my ORL demo. Basicly what you have to do is to swich sampling.

  • It doesn't look like a sampling issue, because there are glitches. I'm guessing you're using the 0.99.3 testing release which is broken, so you probably want to use the last stable build, 0.98.9, or wait for the next stable build (which hopefully will be 0.99.4!)

  • A bit OT Any idea when next stable is coming?

  • Maybe this weekend, I've been really busy recently though I'm afraid!

  • I was using the stable version and changing the sampling didn't work. I switched to the unstable version (which crashed as soon as I tried to add a new sprite ) but that didn't change much either. I went back to the stable version and turned the tiles into sprites instead of tiled background objects and that got rid of the problem.

    I'd upload a .cap of the buggy state but I got the autosave on and not auto backup so...

  • It could be that your graphics card doesn't like the non-power of 2 texture size of 44x44px. It looks like the same sort of offset-by-one glitch I used to get with my old card.

    Do a test using 32x32px or 64x64px tiles and see if that gives the same effect.

    Alternately you could try updating your graphics card drivers, that helps some people out. And if you like you can PM me your .cap (I won't steal it... I promise ) and I'll see if it does the same thing on my machine.

  • i'm also getting this kind of problem. I've tried both kinds of sampling, changing texture size and nothing seems to work.

    i get this

    <img src="http://i35.photobucket.com/albums/d179/iloveyoumaryjane/1-1.jpg">

    turning into this (note the corner)

    <img src="http://i35.photobucket.com/albums/d179/iloveyoumaryjane/2.jpg">

    i'm using the latest build also

  • It's difficult to tell from your screencap because of jpg compression, but it looks like your tile is 34x36, which is not a power of 2. Correct me if I'm wrong.

    Try using 32x32 tiles... or as mentioned so many times that it has now become a rather tedious mantra, "try updating your graphics card drivers."

    Note that this problem is pretty much just for the Tiled Background object, because it has repeating textures (and even then, it only happens on some graphics cards). If you need non-standard sized tiles you could probably use instances of Sprites, some people have had success with that method.

  • It's difficult to tell from your screencap because of jpg compression, but it looks like your tile is 34x36

    Deadeye is gifted with the ability to tell by the pixels.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • that's a pretty cool talent

    yeah, that's the size. I intentionally wanted it wider than tall. The sprite workaround seems to work fine.

    As an aside I also had the same problem with power-of-two sized textures, that is the appearance in the layout not matching the in game appearance.

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