How to set a background with an image


(Fran Tardencilla) #1

I have a large image that I would like to use as the background in my game. How do I do this with tiled map editor? I’m using libgdx


(魔大农) #2

Within Tiled, create a new layer and pick Image Layer. You can set the image in the layer’s properties.


(Thorbjørn Lindeijer) #3

While using an image layer works, note that it is also possible to place the image as a tile object on an object layer. The layer can be locked to avoid accidental interaction with this large object.

Using an object layer and tile objects has several advantages:

  • The image can be scaled and rotated.
  • You could use multiple images to compose the background and select / modify them more comfortably.