Skip to content

TiledMaps

clintbellanger edited this page Mar 26, 2011 · 5 revisions

Some notes about the way we're using Tiled:

  • Before creating a new map, play around with an existing map!
  • When creating a new map, use the existing blank map.
  • There are four layers. You must pay attention to what layer you're drawing in!
  • background is for background stuff, usually distant background
  • fringe is for those decorative edges on foreground tiles.
  • foreground is your main platforming blocks, floors, walls, ceilings, obstacles, etc.
  • collision should only use one tile: that translucent red. It is used to mark a solid tile.

The game reads a simpler format. To convert:

  • If you haven't already, go to Preferences - Store Tiled layer data as: CSV
  • Save your map
  • Edit your map .tmx file in a text editor
  • Copy the CSV data for each layer and paste it into a map .txt file
  • Make sure each section of CSV is preceded by the matching header line: [background], [fringe], [foreground], [collision]
  • No blank lines between the [layername] and the start of map csv data
  • Make sure width= and height= matches your map tile size
Clone this wiki locally