-2

I am currently following this tutorial: https://www.youtube.com/watch?v=D1ZQFlH4g0E

I have an issue when I import my map that I created on Tiled with Flutter Flame Tiled; I get lines appearing in certain places as you can see in the screenshot, I have circled some of them in red.

enter image description here

However, as you can see on the Tiled software, there's no issue.

enter image description here

Can you help me understand where the problem is coming from?

Thank you very much.

Milaethe
  • 43
  • 5

2 Answers2

0

This is unfortunately a bug in Flutter, which seems like it will be solved by Impeller.

You can read more about the bug here.

spydon
  • 9,372
  • 6
  • 33
  • 63
  • But why doesn't the YouTuber who made the tutorial have this issue? Moreover, I don't feel like the problem is the same because below my platforms, the extra pixel corresponds to the first pixel of the design of the platform that is below in the sprite (even though I properly set the size of the sprite's vector) – Milaethe Aug 20 '23 at 13:54
  • The bug doesn't always manifest, it depends a bit on the screen size etc. Does it always manifest for you? – spydon Aug 20 '23 at 15:32
  • Yes, it's absolutely all the time, and I don’t feel like the bug behaves the same as the one you shared on your link. Because I have my bug only on the platforms and on my sprite I have three platforms one on top of the other: the yellow is on top of the brown which is on top of the gray and as you can see on my screenshot, the gray has no issue, and under the brown, we can clearly recognize the first pixel of the gray sprite and similarly for the yellow in relation to the brown. – Milaethe Aug 20 '23 at 17:43
  • I feel like my 16x16 platform always takes an extra pixel from below, but even if I change the size in the code, the problem remains the same. – Milaethe Aug 20 '23 at 17:44
0

Are you testing your game on browser? In my videos I run it as a desktop application, however if I run it on browser I get the same weird lines occasionally too, which is a known issue.