Dayvid86's Forum Posts

  • Hi, you can place in your game, 1, 2, 3, 4........ object Json, Array, etc....

    You then name them as you wish, you access them like any other object !

  • Hi,

    There are tons of backup examples!

    Did you do a search on the forum?

    Especially since it's very simple!

    You just have to save your game, in "system", you have actions, "save", "load"...

    It's very easy, unlike some programs, to build ready-made actions, your not much to do!

    Otherwise, be clearer!

  • Thank you:)

  • Hello,

    How to create a sprite in my game with for example 3 frames with images I want to upload.

    I would like to load images in my game that are not in my basic project.

    Change the animation of a sprite by putting its images that I just changed.

    For example:

    Load image 1, change frame #1 of my sprite with the new image

    Load image 2, change frame n°2 of my sprite with the new image

    Load image 3, change frame #3 of my sprite with the new image

    For example I would like to create a button in my game, I would like to choose

    just 3 images, one for each frame (1, 2, 3).

  • It's not random. It will work in some specific circumstances but not others. With a bit more testing you can probably figure out precisely which.

    I couldn't understand where it came from, no.

  • Dayvid86

    Do you really need the ProjectFolder not the AppFolder?

    Have you tried NWjs.AppFolder&"MyText.txt" ?

    Yes, now it works..... well, when NWjs wants to!

    Thank you.

  • You have to understand, sometimes it doesn't work, sometimes it works...

    That's why I don't like software like that, browser-based software is too boring for file management....

    I just did some more tests....

    Now it works, no problem!

    But on another project, sometimes it didn't work, sometimes it did!

    That's why it annoys me, it only works when it wants!

    I think NWjs is the one who's making this up!

    Or the Chrome browser!

    Anyway, it's not acceptable to me at all, it's too random!

    I've already had problems with reading Dictionary, Table!

    All seemed normal but no it didn't work!

    And if you add AJAX, then it's even worse!

    I hate all those things that only work when they want to!

    On an operating system, the file exists or not, it can be

    read or not, but at least it's clear!

    With browsers, it's doubly annoying:

    Does the file exist?

    Can the file be read?

    Would NWjs please read the file?

    In short, browser-based software is too boring!

    Translated with deepl.com/Translator

  • Of course it does, it matters!

    NWjs him he doesn't understand!

    If I ask NWjs to open a file located, for example, on:

    C:\Users\Dayvid86\Desktop\MyGame\Abc.txt

    By doing: NWjs.ProjectFilesFolder & "Abc.txt"

    AND HE WILL NOT OPEN IT!

    Because the path is not found!

  • Why does it often take days to get an answer on this forum?

    Is it that hard to answer my question?

    What do moderators do, nobody knows that?

    PATH MUST CONTAIN "\", NOT "/"

    I'M UNDER WINDOWS, IN WINDOWS PATH, USE "\" !

    Someone tell me, so normal?

  • Wow, very good!

    Thank you very much ^^

    I put a "credit" in the comments:

    Created by "My", corrected and optimized by WackyToaster.

    [WackyToaster], do you think you can do the other example too, please ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So no one knows?

  • I'm waiting for an answer!

  • UP please !

  • Hi,

    Could someone help me to correct and improve his two examples, please?

    These are examples I made at the very beginning, to move the camera to the mouse.

    It's not yet ready, if someone would be willing to help me correct and optimize all that, it would be nice:)

    I would put in my example a note (credited) to indicate that you are the one who corrected and optimized it.

    drive.google.com/open

    drive.google.com/open

  • Good evening,

    C3 Office.

    I have noticed problems when asked: NWjs.ProjectFilesFolder.

    The path ends with /.

    I'm on Windows 7.

    The path must contain \, not /.

    If I ask NWjs.ProjectFilesFolder in preview mode, it will be placed

    in the folder where C3 is installed, normal, but the path ends with: /Version C3/

    Is this all normal?

    That's why I row a lot when I request a file with NWjs.ProjectFilesFolder.

    The path is wrong and it generates errors that I didn't understand!