justifun's Forum Posts

  • redrocket - he likes money, i'm sure if you through some at him he might be interested.

  • vzad - here's a capx example: https://u403350.dl.dropboxusercontent.com/u/403350/Nima-Plugin-example.capx

    while making this example i just noticed a little bug where the legs stay in the previous pose of the walk cycle when you switch to the idle. we'll get that fixed and a updated plugin put up right away.

  • gumshoe2029 - Thanks for the file!

    The mousewheel zoom seems to work, but panning doesnt seem to function. Is there anything in need to tweak?

    thanks!

  • alexis06 - if you can host the C2 version somewhere i can convert it to a C3 version for you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • rexrainbow - Here's a sample file for you : https://dl.dropboxusercontent.com/u/403 ... forRex.zip

    This map is made up of objects instead of regular tiles, and the objects in the tileset have custom properties on them.

    the goals is to be able to read those custom property names and values (and ideally the layer name that the objects are on too.

    Thanks rex, and let me know if there's anything else you need from me to help.

  • I've managed to make a smooth scrolling prototype for a game i'm testing, but i need to convert it to make it behave a similar way, but making the camera move instead of the background.

    I've tried many attempts to get the scroll X working, but i can't quite replicated what i have here. Please see the capx link for an example. (Click and drag to scroll the view, then let go for it to slow to a stop.

    example: https://dl.dropboxusercontent.com/u/403 ... gTest.capx

    The goal: to drag the virtual camera (ScrollX) left and right matching the mouse 1:1. Then when you let go, it continues to scroll slowing to a stop.

  • rexrainbow - it seems like this is part of this issue (as is "as intended" by the map editor developer)

    https://github.com/bjorn/tiled/issues/1609

    It doesnt save that information if the object properties havent changed (on the main map).

    So is there a way with your importer to grab the information from the first portion of the TMX file for each tile ID / property instead of looking for it down in the <objectgroup> section at the bottom?

    thanks

  • Update: ok after more testing this issue is still present. If you are using objects with custom properties as opposed to tiles, the imported wont pick them up.

    rexrainbow - Hello again!

    I still have to verify the new object offset feature you added, but in the mean time i came across another issue with the TMX importer.

    When using the Tiled map editor object layer, and you add objects via the "Insert Tile" button (the one that has a little image icon). Any custom properties on these objects will show up in the property window, however they wont be read by the importer

    Here's an example.

    If I save the file after adding a few tiles, None of the custom properties show up in the tmx data in the <objectgroup> <properties> section where i believe your plugin is looking for them.

    However! If you add another random custom property to the object in the map then save it again there is now a new entry in the <objectgroup> at the bottom (its no longer blank), AND the TMX importer now actually reads all the previous custom properties that it was skipping over before.

    It appears that If your importer doesn't find a <properties> section within <objectgroup> they it wont load any of the custom properties that are being added to the file via embedding a external tileset even though the data for that is just in a different location in the .tmx file.

    Example: File saved with only custom object properties being defined in the tileset

     <objectgroup name="Object Layer 1">
      <object id="1" gid="1" x="0" y="1400" width="2064" height="401">
      </object>
     </objectgroup>[/code:3f1gcdbw]
    

    Example: File saved with an extra custom property added before saving

     <objectgroup name="Object Layer 1">
      <object id="1" gid="1" x="0" y="1400" width="2064" height="401">
       <properties>
        <property name="TestProperty" value="TestData"/>
       </properties>
      </object>
     </objectgroup>[/code:3f1gcdbw]
    
    in both examples, up higher in the TMX file the object custom properties are defined but the importer is skipping this data if the <objectgroup> is missing the <properties> section
    [code:3f1gcdbw]  <tile id="0">
       <properties>
        <property name="Damage" type="int" value="1"/>
        <property name="Name" value="LavaPool"/>
        <property name="Solid" type="int" value="1"/>
        <property name="Value" type="int" value="0"/>
       </properties>
       <image width="2064" height="401" source="../Art/Lava_ground.png"/>[/code:3f1gcdbw]
    
    it appears as if its a case of how the map editor is saving the file, but perhaps there's a way to make it work with your importer?
    
    I can be found on discord in your channel if you have further questions: @justifun
    
    thanks!
  • rexrainbow - Thanks! I'll check it out and report back any bugs!

    For those of you who might have been trying to figure out multiple maps vs one tileset the workflow i found that works ok is.

    Make a tileset and leave it open in tiled. Then create a new Map for each level you want to design. Drag your pieces from the one tile set into your map and design it.

    Save a copy of your map seperately then you main one as a backup.

    Click the button in the tileset window that says "Embed Tileset into map"

    Save your map file into your C2 Project folder

    By embedding your tileset into the map file the data will be accessible from the TMX importer. However you need to make sure you make a backup of the TMX map because you want to keep your master map files NOT have the tileset embedded into it, so that you can use the same tileset for all maps.

    Not sure how to un-embed a tileset from a map

  • hello again rexrainbow - 2 questions for you.

    1) not sure if this is a bug or not. When using the action "set instance at position" it will correctly offset the tile layer, but the object layer will not get offset. it remains at 0,0. is there something else i need to do to make the object layer line up with the tiles like in the tiled editor

    2) is it possible to have multiple tmx map files all referencing the same .tsx tileset to reuse tiles between maps? is there an option in tiled, or a way to import .tsx files into c2 to resue the tilesets between maps?

    thanks

  • The grammar of your post title is incorrect.

  • rexrainbow - i figured out that i needed to find/replace all " with "" for it to work in C2 properly.

    my next question (which i also sent to you in discord) is...

    Is it possible to use tile custom properties, when using the TMX import with the tilemap ? I saw how you used properties in your other json examples where you are generating lots of tiles, buti'm trying to avoid that by using the tilemap method.

    Can i do something like "if tile property = "rock" -> create rock sprite at tile.x, tile.y?

    thx

  • rexrainbow - The exported json and xml data from tiled seems to come out different then your example files, which version of tiled did you use when you were making this plugin?

    thanks

  • I suppose this just havent added that functionality yet, but here's a temporary alternative solution for you.

    If you install the free chrome extension "Pushbullet" on your main machine and all of your devices

    https://chrome.google.com/webstore/deta ... dkjlcfhogd

    You can then easily send links/message/files etc from your main computer to all devices with one click.

    By default it will open a browser link you send automatically, so if you simply paste the remote preview link to your pushbullet extension, it will auto open on all devices linked to your account.

  • mekonbekon - Fenix just runs off your own computer, so there's no cost, its like 1 or 2 clicks to deploy. There's lots of different options out there. We all have our favorites.

    I've used digitalocean's droplets in the past for deploying affordable servers online.

    https://www.digitalocean.com/products/

    its $5 a month for their lowers tier cloud computer .

    you get a dedicated server with 20GB drive space and 1TB of transfer and its super easy to scale up if you need to down the road.