Here is the next version of tmx importer.
----
TMX importer
(Update:2013/07/06)
TMX (*.tmx) file is an output file of tile map editor. Plugin currently only supports two save modes.
- Base64 (uncompressed)
- CSV
Set save mode from menu bar "Edit" -> "Preferences"
Here is a sample capx.
The steps of using tmx importer for normal usage are:
1. load tmx string: "Action:Import tmx string". You can get tmx string from aJax.
- remember to replace " to ' if copy string into event sheet directly
2. create tile instances: "Action: Create tiles". This action will create instance, put instance into SOL, then trigger "Condition:On each tile cell" for each instance. You can do other customize.
- plugin will ignore tmx's invisible layer.
- plugin will create instance to THE SAME layer name. For example, layer name in tmx is "Ground", there should have "Ground" layer in capx.
- plugin will set the sprite frame to tile id. See the animation frame in sample capx file for more detail.
3. release memory: "Action:Release tmx object".
For advance user, step 2 can replace to "Action: Retrieve tile array". This action will not create any instance, it only trigger "Condition:On each tile cell" for each available cell. You can get properties stored in layer/tileset/tile to create instance manually.
See test_TMXImporter_adv.capx.
Execution flow
rexrainbow2013-07-22 07:20:17