[PLUGIN] TMX importer

  • thanks for help. new question - are you planning,or can you give me advice how to use some tilesets in one project - and c2 parsing it correstly?i`m trying to use properties in tiles and expression "tilesetname", but still trouble.

  • SirG

    Put expression "tilesetname" under condition "on each tile cell", then you could get tileset name of (each) current tile.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • rexrainbow

    thank you for help. next problem (( i made map 20*20 by 32px tile width. Map showing correctly, but player can move in a dimension 960*960px only. Can you advice me why?

  • SirG

    Uh, very stupid solution -- you could create 30x30 map, fill "empty" tiles outside of 20x20.

  • SUPERB!

    Oh and btw *cough* path editor *cough* <img src="smileys/smiley2.gif" border="0" align="middle" />

  • rexrainbow

    thanks for support =) now i`m understand what you mean. and i want to ask you - are you still planning to implement parsing objects?

  • SirG

    I'm not sure what do you mean "parsing 'objects'". Could you explain more detail?

  • rexrainbow

    sure. i mean TMXimporter can create object layers from Tiled Editor.

    and you wrote:

    "I might add "object layer" at next version."

  • SirG

    Uh, sorry, I had not test the "object layer" success yet. (So the next version was dead. <img src="smileys/smiley5.gif" border="0" align="middle" />)

    Could you please give me a tmx file which had "object layer"?

  • Awesome! I am using this.

    I am actually recreated BrowserQuest (http://browserquest.mozilla.org/ <--- Original). They went open source and they are HTML5/JS so I decided I'd remake it for Construct 2 and release it!

    Problem though. I exported the map to a .tmx file, and copied the string. Everything works! Or well, did.. Now it freezes my construct 2 client, crashes it, and it takes forever to load in the browser too.

    The tileset is 320x1568 with tiles of 16x16.

    It divided itself into over 2000 tiles! (Using import sprite sheet)

    It worked at first, then it started doing the above, lagging, crashing, etc. I can't even open up the animations anymore either, double clicking that specific tileset locks up the client.

    Image:

    <img src="http://s13.postimage.org/vczsvisqv/tilesheet.png" border="0" />

  • Note:

    TMX importer could not be used with CoconJS since it use xml parser like official xml plugin.

  • Any way to make collision by giving a "solid = 1" Property to a tile in Tiled? Maybe have it so if solid = 1 than at a 16x16 Solid Block on that tile?

  • Equinox80

    There two ways to use "solid":

    1. use 8 dir behavior + solid if you use tmx only to create a map

    2. use grid move behavior + solid if you want to move on the tile.

  • Equinox80

    For BrowserQuest, it need a server to handle all of the computing, client only do displaying at view-able area.

  • Alright thanks. And I know, I have a server in development for it, or would if I decided to progress with it, might just stick with my own ORPG.

    Edit: What I just ended up doing was exporting the TMX map as an Image, placing that in as a background image, (so I visually could see it in the editor), and then deleting it on startup. That way I make the map in Tiled and add the events and such in C2.

    Also, How would I do multiple tilesets, and is there anyway to make autotiles (like water) in tiled that works in C2?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)