dop2000's Forum Posts

  • NWjs.UserFolder should already contain "/" at the end. We use this path on Linux:

    NWjs.UserFolder & "YourGameName"

    NWjs.UserFolder & "YourGameName" & "/save01.dat"

  • Try exporting with DevTools enabled, run the game, press F12 and check for error messages in console log.

  • It's probably those ±15 pixels.

    I suggest you use MoveTo behavior for the drone instead of lerp. On every tick move to the position behind/above the character. Set small values for acceleration and deceleration for a nice smooth flight.

    And by the way, when using lerp you need to use delta-time. Instead of 0.005 in the last parameter, it should be 0.3*dt. Otherwise the game will run differently on different frame rates.

  • I realized I'm using JSON object for almost everything now. It's not perfect, but so much easier to work with than C3 arrays.

    We have dozens of large array files in the project because it's easier to edit the data in table format, but in runtime I convert them all to JSONs.

  • This plugin does exactly that and more

    Looks like a great plugin with tons of useful features! I wish Scirra implemented at least some of these ideas.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • See this post:

    construct.net/en/forum/construct-3/how-do-i-8/nwjs-export-custom-cursor-177833

    I couldn't find a solution.

  • i need to make event to NPC not to family because all instance variables already have 'NPC' Like AI behavior, and other statistics

    See this tutorial:

    construct.net/en/tutorials/upgrade-object-family-14

    You can do this without a family, but it's more difficult.

  • I have no idea what happens in this game, but it's really cool!

  • You can add NPC sprite to a family and move LineOfSight behavior to the family level. Then you will be able to pick family instances independently from NPC instances.

    Bullet on collision with NPC
    .. FamilyNPC has LOS to LPC : FamilyNPC set animation to "shoked"
    
  • Can you make two backgrounds? One can be a sprite (trees), and another a TiledBackground object (pillars and clouds). You can stretch the TiledBackground vertically as much as needed.

    So if the player jumps higher than trees, they will still see the second background with clouds.

    You can also put these backgrounds on different layers with different parallax for a nice visual effect.

  • I am not sure I understand your question, but it seems like you are looking for parallax effect. Place your background on a separate layer and adjust its parallax setting. You can even use negative parallax values to move the background in the same direction with the scroll.

  • Physics engine is pretty complex and I'm guessing it's not possible to change the timescale of an individual object, because it's part of the "physics world".

    You can try faking it - for example limit its velocity with an event running on every tick.

  • You need to report it here:

    github.com/Scirra/Construct-bugs/issues

  • Thanks!

    As I understand, the MacOS equivalent of appdata folder is

    ~/Library/Application Support/<appname>

    One problem is that in NWJS we can't use "~" character in file path, I am not sure how to properly access ~/Library without it.

    Also, changing the save file location for existing players may be an issue, hopefully it's possible with Steam Cloud.

  • Our NWjs game writes save files to Documents folder. When you install it with Steam and run for the first time on Mac, it displays a dialogue like this:

    After that the game works fine, can read/write files from Documents folder.

    However, if we release a new version and Steam updates the game, it looks like this permission gets removed. The game doesn't prompt again for access, but it can't read any files from the Documents folder and throws this error in console log:

    Error: EPERM: operation not permitted, open '/Users/username/documents/GameName/Filename"

    There are two ways to fix it - either uninstall/reinstall the game and confirm the permission again, or give full disk access to the game. Neither of which is a good solution.

    Has anyone had this issue?

    If this is a bug, who should we report it to - Scirra, Google (NWjs), or Steam?

    Tagged: