dop2000's Recent Forum Activity

  • That JSON string needs to be loaded into JSON object, not Dictionary object.

    Add JSON object to the project, use JSON Parse action.

    See this example:

    editor.construct.net

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

  • Try Construct 3

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

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

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 280 followers

Connect with dop2000

Trophy Case

  • 10-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x14
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

30/44
How to earn trophies