dop2000's Forum Posts

  • Maybe I don't understand the issue, but can't you have the event listener for the family?

    runtime.objects.Enemies.addEventListener("instancecreate", (event) => {

    console.log("A new instance was created:", event.instance.objectType.name);

    });

  • Families are referenced the same way as objects. For example:

    runtime.objects.Sprite.getFirstInstance();

    runtime.objects.FamilySprites.getFirstInstance();

    I'd like to know how to get the family name of an object I have a reference to

    It's usually the other way around - to get the object name of a family member use FamilyInstance.objectType.name

    I don't think it's possible to find which family this object belongs to. But you can try to pick family instance by object UID. Here is how I would do this with events:

    On Clicked Sprite
    EnemiesFamily pick by UID = Sprite.UID
    

    If the sprite is a member of EnemiesFamily, this event will pick it.

  • Try setting loading logo and a splash icon.

    construct.net/en/make-games/manuals/construct-3/tips-and-guides/icons-splash

  • You need to mention this in every of your posts! C2 and C3 are too different now.

    On every tick set healthbar position to something like (NPC.x, NPC.BBoxTop-10)

  • Use hierarchy instead of Pin.

  • I would like this too. I often need to run the preview on a touch-screen and the inspector on a second monitor, and it's incredibly annoying having to detach, move and adjust its size every time.

    Debugger is the most outdated feature in Construct, hasn't changed much since C2.

  • The easiest way is to attach it with hierarchy - either manually in layout editor, or using "Player Add child" action.

  • If you are willing to draw this path manually, you can use timelines.

  • LS location on Windows should be this:

    C:\Users\USERNAME\AppData\Local\game_name\User Data\Default\IndexedDB

  • I believe what I should do then is create an array and a json within the construct, use Ajax to import the json into the array

    If you need to pre-load some data into the array, then yes - create an array file in the project and load it with AJAX. You don't need NWjs for this part.

    and then use NJWS to write the array into the json, right?

    If you need to save the contents of the (changed) array in runtime, you can either save it to local storage or write to a disk file with NWjs.

  • First, you need to add NWJS object to the project.

    NWJS Write Text File action to save.

    Array Load from NWJS.ReadFile("path") to load.

    And of course these will only work in the exported game.

  • Try searching the forum, there were a few posts about this.

    construct.net/en/forum/construct-3/general-discussion-7/nwjs-save-games-local-storage-178282

  • You do not have permission to view this post

  • You do not have permission to view this post

  • On all my gamepads (5 different makes) d-pad buttons are definitely buttons.