TIled Map

0 favourites
From the Asset Store
A template which allows you to customise the controls of your game.
  • Hi rexrainbow, great plugin, but is there any way for the tile propertied from the map to be set to a corresponding instance variable in the "tile" in construct 2? If not, could you implement it? It'll make it easier to decide whether or not we need to perform a collision check. Cheers! :)

  • Weishaupt

    What kind of "colission detection"? delgado has the same question before. My answer is -- Collision polygon is defined in c2 (sprite editor). Or... Do I misunderstand something? Do you mean some tiles can move through, some are not?

    If you could make your plugin create some c2 'tiles' with the behavior solid (the ones with an impassable property set to 1) and all other tiles without the solid property, then this plugin would be incredibly useful!

  • valkyriegames

    It might be match your requirement:

    dl.dropbox.com/u/5779181/tmx%20import%20demo.7z

    Dependence:

    Plugin:

    TmxImporter

    Board

    SquareTx

    Behavior:

    Grid move

    1. you can get each tile properties by using expression: TileProp(name)

    • [TmxImport] "action: retrieve tile array" will trigger "condition:on each tile cell" for each tile. Setup tile sprite under this condition.

    <img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/screen1-22.png" border="0">

    Check expressions of tmx importer to get more properties. Please see TmxImporter for more detail.

    2. board plugin, squareTx plugin, grid move behavior are options. You can use tmx importer plugin stand alone. i.e. you only need to set solid property by expression: TileProp(name) without other plugins.

    3. board plugin maintain a logic array of chess board.

    4. "Grid move" behavior could let chess do grid move (extended from moveTo behavior) at board. It will be stuck if

    a. try to move on a solid tile

    b. try to move on other chess which has the same z order (board's z order, not layout editor)

  • Try Construct 3

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

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

    I put tmx importer plugin + 8 direction behavior sample capx into the same zip file.

    So there are two capx files

    • tmx importer + grid move
    • tmx importer + 8 direction

    Maybe tmx importer + 8 direction is enough. <img src="smileys/smiley36.gif" border="0" align="middle" /> So please ignored tmx importer + grid move

  • rexrainbow

    Thanks for those replies, they were incredible helpful. I had a look in the TMXImporter actions but couldn't find anything related to Properties. I see that they have to be accessed through system. I think this is exactly what delgado and Weishaupt were asking for too.

    Thanks man, you're just too awesome for making and providing support for these plugins!

  • valkyriegames , Weishaupt , delgado

    Sorry, my bad. Clearly document is necessary.

    Hope these capx files could help you,

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