EiLiF64's Forum Posts

  • C3 doesn't provide native support for hexagonal tilemaps. But where there's a will, there's a way.

    My workflow is as follows:

    • create hex-tiles in Corel Draw
    • export the tiles to SVG
    • import tiles into C3 as SVGs
    • create maps in Tiled
    • export map as CSV
    • import CSVs by layer via AJAX and stuff them into an array
    • use a lookup table to draw hex-tiles on the layout

    At first I used PNG sprites, but decided to use SVG so I can scale on a much wider range. Mind you, my project is a prototype so details are not that important. Clean and pixel-perfect output is.

    It is important to design the tiles at a certain width to height ratio, so that they don't look squished. I am using a ratio of 120 pixel wide and 104 pixel high. That makes the vertical offset 104 pixel and the horizontal offset 90 pixel.

    Here is a link to the project for those of you that are interested.

    WARNING: The project file is my sandbox for trying new stuff (I am new to C3) before merging it with the main project. So don't expect a finished template. It's merely a collection of events and functions that prototype what will go into the final product.

  • That does it. Much appreciated.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I create an object (SVG) by name on a layer. Now I want to set instance variables that the object inherits from it's family. How do do this? Is there a UID I can catch somewhere?

  • I figured the <Opacity> out. It only works if you set the object's original <opacity> to 0 in the layout. Then change the <Opacity> track as required.

  • Add <Add properties> <Opacity> to the object <text> and change the value (%) at the key frames, right? I am expecting for the object to gradually fade away.

    Doesn't work for me. I haven't tested all properties but <Color> and <Angle> seems to work.

    I have had many other issues, including editor freezes when opening a certain timeline, but this is issue is very repeatable. I wanted to get some feedback before I head over to GitHub and file a bug report.

    C3 version r404 beta & r397 stable

  • They migrated alright. My tile sprite, I use hexagons so no tilemap for me, was indeed marked global. I turned it off and now everything is peachy. Thanks so much.

    Here is what that looked like: Google Drive Link

  • Layout "01_Main" has two layers: BG(0) and UI(1).

    Layout "02_Demo" has 5 layers: topology(0), transportation(1), borders(2), objects(3) and UI(4).

    When I switch back from layout "02_Demo" to layout "01_Main" some layers from "02_Demo" show in "01_Main".

    Is this expected behavior? As a workaround I remove [Remove Layer] the offending layers "transportation(1)" and "borders(2)" before going back to "01_Main" and all is well. I do not have to remove "topology(0)", "objects(3)" and "UI(4) for this to work.

    I have tried to figure why some layers ghost into "01_Main" but can't seem to find a pattern.

    Is this a feature or a bug?

  • The editor says it can't be done. Does anybody have a workaround? Thanks.

    Tagged: