orugari's Forum Posts

  • Hello,

    You know what? Taking breaks is really important... Even Construct 3 gives us a gentle reminder every two hours!

    Thanks for pointing out the confusion 😊

  • Hi,

    I'm having trouble creating or updating an object in Construct 3 depending on whether an instance with a specific variable already exists.

    What I’m trying to do:

    On signal received:

    Pick the player_hitbox object using its instance variable myId

    If it does not exist, create a new one

    If it does exist, update its position

    Unfortunately, I can't get this to work. Right now, the event always ends up creating a new player_hitbox, even though one with the same uniqueId already exists.

    Here’s a screenshot of my event sheet for reference:

    Any idea what I'm doing wrong? Thanks in advance!

  • I understood now. yes, JS is needed for this :)

    Thank you for the clear explanation !

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Okay, let’s start from… the beginning.

    Instead of using "Wait X seconds", you should use "Wait for previous actions to complete".

    This ensures Construct waits for what's actually needed before continuing.

    You already have the event "LocalStorage → On item 'HighScore' get", which acts as a proper trigger for when the loading is finished — so no need to wait blindly.

    Also, instead of doing something like:

    Wait SplashExplosion seconds

    → Create ExplosionSmall

    Every SplashExplosion seconds:

    → Create ExplosionSmall at int(random(0, viewport width)), int(random(0, viewport height))

    Using "Wait" without being linked to a proper flow or trigger does nothing, because you're not actually telling Construct when to wait or why.

  • I see, thats why, when I set an instance variable on family, it only takes one element.

    Would be nice to be able t do some thing like:

    for each Family member (edited from "Element")

    -> do action

    Is it possible ?

  • Hello,

    Can you give us a screenshot of your game properties Startup?

    Also, can you provide a screenshot of your eventsheet of your Splash layout ?

    Problem can come from different sources.

  • Hello everyone,

    I'm trying to create an object by selecting a Family, but it doesn't seem to work.

    Here’s the situation:

    I have a family called "SpriteFamily" that includes spriteA, spriteB, and spriteC.

    At the start of the layout, I use the action Create Object → SpriteFamily, but nothing gets created.

    I was expecting it to create all the sprites in the family — or did I misunderstand how families work? Why it is selectable on "Create Object"?

    Thanks for your help!

    Tagged:

  • Hi everyone,

    I would like to sugget to add kDrive to save option. I am having issue with oneDrive (it can't save, error 401) and I do not want to use anymore Microsoft office nor google.

    kDrive is an excellent service, so it would be great to make a partnership with them !

    Tagged:

  • Hello,

    I'm proud to present my Key Assignment template!

    It's very easy to use, and in no time at all you'll have a system for reassigning keys on both the keyboard and the joystick.

    A demo is available on Scirra Arcade.

    Don't hesitate to let me know what you think!

    Try it !

    https://www.construct.net/fr/free-online-games/key-assignment-kit-57045/play

    Buy it :D

    https://www.construct.net/fr/game-assets/game-templates/key-assignment-kit-3684

  • You do not have permission to view this post

  • Hello,

    I would like to read data from localstorage within a loop. Meaning is to feel a dictionary with localstorage value. Dictionary keys and localstorage key have same name.

    Problem, the first loop is working fine, but on the second loop, impossible to get the localstorage item, the get item does not work, it keeps loading first dictionary.currentKey

    My algorithm is

    On the second loop, the get localstorage keep the first loop value, it looks like the get item does not load a second time.

    But dictionary has right values, localstorage too and I have data in localstorage.

    Any clue on how to loop through localstorage keys ?

    Thank you.

  • Hello,

    Thank you for your help.

    Your answer gave me a hint. Actually, this has only one "row" so 0 was not necessary, but I found an other issue in my project because of you, and it helped me to find a solution for the global project ! :)

  • Hello,

    I 'm having issue to get data from this JSON string (this is the value INSIDE Construct, with double double quote):

    "{""saveinfo"":[{""date"":"""&Date.ToLocaleString(Date.Now)&"""},{""orugari"":"&SaveStateJSON&"]}"

    What I did so far :

    PARSE to JSON this string

    and I am trying to get the value of "date" and "orugari" like that:

    JSON.get("saveinfo.date") or JSON.get("saveinfo.orugari")

    but both result are false (0)...

    Any idea why I'm having no result ?

    Thanks !

    Tagged:

  • You do not have permission to view this post

  • You do not have permission to view this post