EiLiF64's Recent Forum Activity

  • 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

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

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