PabloDev's Forum Posts

  • I create and load the state of the object from JSON but there is a problem with the ZI variable.

    Then I check if the state of the object is different from the state in JSON saved previously, if it is different, then I save the new state in JSON.

    Because of this "problem" with the ZI variable, the state is always different because the JSON ZI variable and the newly created object do not match.

    So I use the plugin to match them.

    I create the object.

    I write in JSON (previously saved) the new ZI value.

    I assign the JSON state to the object.

    When the level is finalized I compare the states (sprite.asJSON <> stateJSON)

    If there are differences in the states then -> stateJSON = sprite.asJSON

    Now when comparing the state of the object (sprite.asJSON) with the state saved in the JSON chain, it will only be saved if something has changed (such as the damage it has or the coordinates).

    I'm doing tests with a REX plugin to get that.

  • I do not know what to do, everything is due to a ZIndex error.

    I need to access the JSON data to alter the value of ZI and put the new value there.

    This is because when you create an object you now have a new ZI and it does not match the one in JSON at the time you saved your JSON status.

    What is the easiest thing I can do?

    I'm testing with a REX plugin, maybe I'll get results.

  • Hello, why does the sprite not recover its initial Z ?.

    Initially the sprite was behind the other sprites but although I reorder its ZIndex, now the sprite appears in front.

    https://www.dropbox.com/s/amvfnuxteajdjwl/testJSON2.capx?dl=0

  • Hello, I have a variable STRING that saves the state of an object in JSON.

    Can I access a data of that variable STRING in JSON to change a value?

    How can I access a value in JSON format?

  • A scene and narration that belongs to the introduction of the game, is in DEBUG mode.

    More info in the first message of this thread.

  • I think it refers to the movement of vibration

    https://www.dropbox.com/s/sqhly33mpam90 ... .capx?dl=0

  • > Hi.

    > A question about the sound files.

    > I use names like this:

    > playerShot.ogg

    > playerJump.ogg

    > enemyDeath.ogg

    > etc...

    >

    > When I export in HTML the names are changed:

    > playershot.ogg

    > playerjump.ogg

    > etc...

    >

    > Why does this happen?.

    > In the editor appear as I want but when I export the names have been changed.

    >

    Response from Ashley regarding lower case export: https://www.scirra.com/forum/filenames-of-imported-files-change-case-on-export_p1016193?#p1016193

    OK thanks.

    Then there is no problem with this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi.

    A question about the sound files.

    I use names like this:

    playerShot.ogg

    playerJump.ogg

    enemyDeath.ogg

    etc...

    When I export in HTML the names are changed:

    playershot.ogg

    playerjump.ogg

    etc...

    Why does this happen?.

    In the editor appear as I want but when I export the names have been changed.

  • Ok well I think I have a solution but the truth is that I find it a bit useless what happens with Z Index.

    Currently you can not compare states in JSON because Z Index does not match and the status will always be different in my case.

  • So the utility of saving the variable zi in JSON is questionable.

  • But this causes me a problem, I need this value to be saved and assigned correctly.

    I'll check if this has a solution.

    The variable ZI is saved in JSON but then it is not assigned correctly and the difference occurs.

    The UID is not saved in JSON.

  • You can look at the json to see what's different. I imagine the uid of an object is part of the json but it's not used when loading.

    The problema is the variable "zi", this is Z INDEX.

    When the state is loaded in JSON the variable ZI is not assigned then the difference occurs.

  • Please, can anyone give a review to this?

    Is it a bug that can be solved ?.

  • the Mnk: Neither. People have lives.

    No more complicated explanation then that.

    A couple of months ago, there was no new third-part addon released during summer. Some people freaked out, when it was just a question of time of year and different interest for a while.

    Well, since I devote a lot of my time to my games, I think I assume that others do the same and that does not mean not having life, it means dedicating your life to this, that's how it seems to me.

    But it is also true that the volume of release of effects and supplements has dropped, on the other hand there are already many add-ons for C2 and there is a lot to choose from.

  • Why are there no new effects and addons to C2?

    Did they all go to C3 or have they just abandoned?