EiLiF64's Recent Forum Activity

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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

EiLiF64's avatar

EiLiF64

Member since 13 Feb, 2023

None one is following EiLiF64 yet!

Trophy Case

  • 1-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

6/44
How to earn trophies