EiLiF64's Forum Posts

  • Email sent.

    P.S. I am based in Austin, TX.

  • Try this:

    CSV-Example

    It should get you started.

  • Great minds think alike ;) Here is the link to the feature request. Maybe you can upvote it or something.

    https://github.com/Scirra/Construct-feature-requests/issues/329

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Like so but without having to disconnect the inspector and then rearrange the windows manually:

  • Very clean presentation. I am looking forward what other elements you will add. As a long-time World of Tank player and game designer I am thinking bushes for concealment, barriers for cover and possibly a couple of special helper tanks that can be called forward to deal with the enemy. Keep up the good work!

  • Very helpful, thanks!

  • Adding Wait for previous actions to complete after every Create and Destroy fixes the issue.

    Can someone confirm that Create and Destroy are asynchronous actions? I did not expect that.

  • I place instances of a power plant on a map. I collate some of their instance variables (power output) to know how much power is being produced in total.

    This does not work as expected with the attached version. What happens here is that the newly placed instance is not recognized. object.count/ is zero after placing the first object instance. After I place the second object it's 1 then 2 and so on... SO alway one behind.

    I get the proper result when I use a dedicated debug event which I start with a button.

    I suspect this issue is based on me using event and sub-event wrong or an async operation Create object that I need to wait for.

    I have attached the C3P file in case somebody wants to take a look.

    The offending code is on event sheet 51_Area in group Widgets Place Remove and function e_grid_update.

    I have .logged and debugged the hell out of this thing so any pointers would be appreciated.

    https://drive.google.com/file/d/1qyxwkb2nFV8Nnhl9xjJ60OlyVD524qcH/view?usp=drive_link

  • You need to head over here to report the bug and fill out the form as best as you can.

  • Thanks for taking the time to respond.

    This happens to me when I look at something too long. You absolutely right!

    Ashley Maybe we can have the Return type in a more prominent color than grey for old farts like me? :)

  • Good stuff and thanks for the response!

  • So I call these functions to convert a number to an Intl.Number() format. Currency, percentage, that sort of stuff. The functions are in a separate event sheet. This works great in my Sandbox project.

    The same is not true for my main project. Same code, same setup, but the functions only ever return a "0". Before leaving the functions I log the result to the console. And they are the correct strings. So the functions get called, calculate the correct string but return a big fat "0".

    I have tried include, although not required. Compared my two projects line by line. No joy.

    Anybody know what's going on?

    P.S. If I duplicate the functions into the event sheet they work fine, but that's beside the point.

  • 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.