tyson Posted June 5, 2013 Share Posted June 5, 2013 Hi all, I'm looking to use the TMX tilemap format as a way to make a simple adventure game system. I'm avoiding using any classic adventure game techniques to keep an easy workflow using traditional tile-based tools. Does this sound workable for a 'Room Controller' ? Make an Object in an object layerPut variables with corresponding object names with sequential numbers at the end, with the required command as the parameter.or example - playerTalk1 : "Hi there I want to be a pirate!", moveTo : (100, 100)Parse each variable in the json/xml Cheers, --Tys Quote Link to comment Share on other sites More sharing options...
Tomas Posted June 5, 2013 Share Posted June 5, 2013 Hi Tys you can use Crafty HTML5 game framework with TiledMapBuilder and with CraftyDialogues. TiledMapBuilder demo.Dialogues demo. Tomas Quote Link to comment Share on other sites More sharing options...
Ankhranum Posted July 2, 2013 Share Posted July 2, 2013 It may be a little late, but you can export your map as a JSON object. This means, it is perfectly made for JS. - When you have your map exported, open it up in notepad- This entire piece of text is an object, and it is written so you can use it as a variable! This way you can acces all objects and layers and their classes with just one line of code!/*map - your variable with the JSON content as valuelayers[0] - the first layerobjects[0] - the first object from that layer*/map.layers[0].objects[0].x Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.