PabloDev's Recent Forum Activity

  • Hello, a question about JSON.

    Suppose you have a sprite object.

    • You save the state of the object in JSON to a file on disk.
    • You modify the object by adding some extra variables and animations or behaviors.
    • Then you regain its status by reading the JSON file on the disk.
    • Will there be problems? Remember that some changes were made to the object and now you are recovering the state of the object by reading a file that was made when the object was a little different.

    Another way of looking at it:

    • Save the state of the object in JSON to a file on disk
    • Modify the object.
    • Retrieves the object state of the JSON file on disk.

    I have done some tests and it seems that there are no errors but I would like to be sure and check if anyone else did.

  • Object > Compare instance variable > var .. Equal to .. 4 <--- picks all instances of Object with var= 4

    ________(no actions)

    Else <--- when that previous picklist is empty, parent condition is untrue, so the else runs

    _____Create Object somewhere

    _____set var to 4

    That is valid although it is a strange condition for me but it serves to avoid the use of "for each".

    I thought of using for each to check the values one by one and if there is any value 4 then put a local variable to 0 to avoid the creation of the object.

    Thanks.

  • Hello, can someone please help me with this?

    Example:

    I have three instances of the same sprite object on screen, this object has a private variable called "var"

    Object 1 var = 10

    Object 2 var = 5

    Object 3 var = 7

    I need to know if there is an on-screen object with var = 4, if it does not exist, then I have to create a sprite object with var = 4

    If I make this condition in C2:

    If (sprite.var! = 4)

    This collects the 3 objects

    If I do this:

    If (sprite.var == 4)

    This does not collect any object and the condition will be false, I will not be able to create the object with var = 4

    So how should I do the condition ?.

  • In the first example there is nothing above trigger once, so trigger once is true on the first tick.

    In the second example, there are conditions above trigger once, so trigger once will be true when the conditions above it are true.

    At least that's how I understand it.

  • nicknick

    Cool! Neat scene btw

    the Mnk

    Did you remember to set "configuration settings - fullscreen scaling" to "high quality"?

    Thanks! That was the problem.

  • I also like them but if I include them it would be for a later version to the first one.

    My idea is to give you appearance of certain ZX Spectrum games.

  • Hi, I like the noise basic static effect but it has no movement, I can not simulate the noise of a TV because there is no movement in the noise.

    How is it used? How can I simulate the noise of an old TV?

    https://www.dropbox.com/s/bn7jpa093mzq7 ... s.rar?dl=0

  • Hi, this effect does not visualize me well.

    In the editor it looks fine but when I run in Chrome with letterbox integer scale it looks bad.

    It can be fixed?.

    Editor:

    In Chrome:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There is a way to shoot in the game, the character can pick up fig bread and shoot it.

    The fig bread is made with dried figs and almonds and is an ancient recipe in my country.

    All this you press and wait for it to dry, then you get the fig bread, can be made at home with a home press.

    This:

    + this

    = this

    The fig bread is taken from the table.

  • I believe you can fetch current time and date using the expression Browser.ExecJS("Date()")

    Ok, problem solved, thanks.

    I needed to know that because my game generates two similar types of data.

    1 - The data of the session

    2 - the saved game data

    When the player saves the game, the session data is now converted to saved game data.

    Then I need to prevent the player from manually copying the data from a session and paste it into the saved data folder.

    So to fix this, when loading a game I need to verify that the data in the saved game folder was created at the correct time. If the data does not match the time it means that the files are copied by the user.

    Any alternative way to do this?

  • Hello.

    Is it possible to know when the files were created with NW.js ?, I mean the date / time the files were created.

  • Ok, I understand, I read the documentation but I have not seen anything about it, thank you.

PabloDev's avatar

PabloDev

Member since 2 Nov, 2015

None one is following PabloDev yet!

Trophy Case

  • 9-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Email Verified

Progress

12/44
How to earn trophies