Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Tilemap behaving WEIRD...  (Read 1680 times)

0 Members and 1 Guest are viewing this topic.

lori3

  • Newbie
  • *
  • Posts: 4
    • View Profile
Tilemap behaving WEIRD...
« on: June 18, 2018, 10:39:55 pm »
Well... I don't really know how to describe this problem other than attaching 2 screenshots and my full code from github.. I mostly use the code from the tilemap tutorial ( if this helps) https://www.sfml-dev.org/tutorials/2.5/graphics-vertex-array.php#example-tile-map

The tilemap should look like the second screenshot. but somewhy it looks like the first one. The pattern only appears when going from left to right or from right to left and seems to appear on specific locations and changing the resolution doesn't seem to fix it.

Here is my full code: https://github.com/lori2001/Warcraft-II---clone
« Last Edit: June 18, 2018, 10:47:13 pm by lori3 »
Warcraft II HD. Check it out! - https://github.com/lori2001/Warcraft-II---clone

Arcade

  • Full Member
  • ***
  • Posts: 230
    • View Profile
Re: Tilemap behaving WEIRD...
« Reply #1 on: June 18, 2018, 11:18:40 pm »
Are you drawing your tilemap to non-integer coordinates? Or are you using a sf::View that can be at a non-integer position? Just based on your images this looks like an issue that many people run into. For example, see this post. Specifically check out eXpl0it3r's responses and see if this sounds like what you're running into.

NGM88

  • Full Member
  • ***
  • Posts: 162
    • View Profile
Re: Tilemap behaving WEIRD...
« Reply #2 on: June 19, 2018, 07:43:53 am »
Well... I don't really know how to describe this problem other than attaching 2 screenshots and my full code from github..

Posting the relevant parts of the code would be more helpful.