tiled icon indicating copy to clipboard operation
tiled copied to clipboard

Looping/wrapping/repeating tile layers

Open exelotl opened this issue 1 year ago • 2 comments

Hi! I'm working on a game with levels that repeat on both axes. I frequently use the Offset Map feature to wrap the level around so I can focus on different parts of it, but it would be a nice quality of life improvement to be able to visualise the looping level while editing.

This might make sense as a per-layer property that could be toggled for each axis. Even in games that don't feature looping levels it might be useful as something people could apply to background layers. I guess it would only be for tile and image layers but not for object layers?

Alternatively it might work as a checkbox in the View menu, similar to what Aseprite offers. (in this case the value appears to be remembered on a per-tab basis, it's not global, nor is it saved with the project) Screenshot from 2022-08-19 12-46-20

[edit] oh, and whether it repeats indefinitely or just once in each direction is also something to consider I guess, not really sure what would be best there, I guess just whatever would be easiest.

exelotl avatar Aug 19 '22 12:08 exelotl

I guess it would only be for tile and image layers but not for object layers?

I just realised this feature already exists for image layers! So this issue is then a request for the same feature to be added to Tile layers.

exelotl avatar Sep 15 '22 20:09 exelotl

I just realised this feature already exists for image layers!

Yes, and since an image layer can refer to a map to use as its image, you can even use that repetition feature to create a map that will preview another map as repeated. Or, you could create another map with just the tile layer you want to repeat, and add that map as a repeating image layer.

That isn't particularly great in terms of usability though, since the repeating map or tile layer can't be directly edited in that case. So, this issue will remain open regarding that feature.

bjorn avatar Sep 16 '22 08:09 bjorn