Tiles drawn in unused cells in tilemap object

Bugs will be moved here once resolved.

Post » Tue Feb 16, 2016 9:00 am

Problem Description
Tiles drawn in unused cells in tilemap object.

Attach a Capx
https://dl.dropboxusercontent.com/u/577 ... 0load.capx

Description of Capx
This test capx has 2 tilemap objects. It loads small one into bigger one. The loaded cells are shown directly, but the unused cells has still drawn.

Steps to Reproduce Bug
  • Run this capx
  • Touch any tile, the tile ID will show in text object.

Observed Result
The tile ID will return -1 means that it is an unused cell. It works correctly. But the cell still draws.

Expected Result
Draw nothing at unused cell ( tile ID = -1 ).
( The workaround is set the size of tilemap equal to the source tilemap. )

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)

Operating System and Service Pack
window 7 32 bit

Construct 2 Version ID
r222
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Tue Feb 16, 2016 6:49 pm

Sounds similar to a bug I reported in the past, which was closed. :(
viewtopic.php?f=152&t=162642

I'd prefer seeing the tileAt return the correct id of the tiles that are still being drawn, and also allow offsetting the loading of the tiledata so that you can load sections at different places.
B
48
S
23
G
66
Posts: 1,144
Reputation: 39,059

Post » Wed Feb 17, 2016 2:24 am

@Prominent

It seems not really to be similar. expression:TileAt works correctly, but displaying does not.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Wed Feb 17, 2016 6:56 pm

Yeah, that is what happens in my case.

We just have different views on how it should be handled. I think it's better to allow more choices to the user rather than limit them.
B
48
S
23
G
66
Posts: 1,144
Reputation: 39,059

Post » Sat Feb 20, 2016 10:55 am

It is not "limitation".
Since set the size (instance width and height, in pixels) of tilemap could fix the drawing problem, it is better to save and load the size of tilemap.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Mon Feb 22, 2016 4:00 am

Yeah, that's true. There are a lot of ways the tilemap object could be improved.
B
48
S
23
G
66
Posts: 1,144
Reputation: 39,059

Post » Tue Mar 22, 2016 3:06 pm

Thanks, should be fixed in the next beta.
Scirra Founder
B
403
S
238
G
89
Posts: 24,660
Reputation: 196,167


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests