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
108
S
26
G
260
Posts: 4,435
Reputation: 146,193

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
41
S
19
G
65
Posts: 1,085
Reputation: 37,842

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
108
S
26
G
260
Posts: 4,435
Reputation: 146,193

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
41
S
19
G
65
Posts: 1,085
Reputation: 37,842

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
108
S
26
G
260
Posts: 4,435
Reputation: 146,193

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
41
S
19
G
65
Posts: 1,085
Reputation: 37,842

Post » Tue Mar 22, 2016 3:06 pm

Thanks, should be fixed in the next beta.
Scirra Founder
B
387
S
230
G
88
Posts: 24,251
Reputation: 192,464


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests