dop2000's Forum Posts

  • Turns out GetMonth returns a number from 0 to 11 (which is quite silly).

    So October is number 9

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well, there aren't many other options. It could be a bug of course, but I think it's unlikely.

    Are you using templates? Maybe when you create an object from a template, it's always created with its children.

    Or perhaps there is an event that creates the child object when the parent is created? It's hard to speculate without the project file.

  • Compare two values: Date.GetMonth(Date.Now)=10

    Compare two values: Date.GetDate(Date.Now)=31

  • Check if the first object is part of a container.

  • There is a checkbox "Create hierarchy" in Create/Spawn action.

  • You can execute any program using NWjs action. For example, to lock your PC on Windows you need to run this command:

    Rundll32.exe user32.dll,LockWorkStation

    However, making such an app with Construct will be difficult. (unless you only want to make it as a fun project). Mainly because Construct app won't work in background.

  • Use the Date object. It has lots of conditions allowing to check the current date, month, time etc.

    editor.construct.net

  • Eren Thanks! Can this code create a subfolder in /Library/Application Support/ ? This is the part that doesn't work for me. I'm afraid it won't be any different with JS.

    After I create the subfolder manually (Mac asks me to enter my password), the game can write files to that subfolder.

  • You need to use "Sprite compare instance variable" condition. Something like this:

    Mouse On Clicked Sprite 
    
    .. Sprite compare variable A=hold : Sprite set A to hold
    
    .. Sprite compare variable B=hold : Sprite set B to hold
    
    .. Sprite compare variable C=hold : Sprite set C to hold
    
  • You have not tried to go the way of mobile publishing and already when packaging the archive to select MAC devices

    I'm not sure what you mean. I've done mobile publishing for Apple App Store, but that's a completely different process.

    Yes, you can upload an unsigned game to Steam and it works on MacOS, but we hope that signing it will help to fix this permission issue.

  • Ashley

    I'd recommend saving data somewhere where permission is not required, such as the app data folder on Windows (not sure what the equivalent is on macOS though

    So I tried NWjs.ProjectFilesFolder and NWjs.AppFolder expressions. Both return some crazy unusable locations which we won't be able to configure in Steam Cloud.

    The MacOS equivalent of Windows appdata folder is:

    /Library/Application Support

    Unfortunately, NWjs app still can't create sub-folders at that location. It doesn't prompt for a permission, but I can see "permission denied" error in console.

    Is there any working solution?

  • Has anyone done this?

    The signing process is described here:

    github.com/nwjs/nw.js/wiki/Mac-App-Store-%28MAS%29-Submission-Guideline

    github.com/nwjs/nw.js/wiki/MAS%3A-Signing-the-app

    But the links are pretty old, and the process requires a lot of manual work. I wonder if there a better/easier way to do this?

  • alastair You need to create the folder first. Check if NWjs.UserFolder & "YourGameName" path exists. If not - create the folder. After that you should be able to write files to it.

  • We are using NWjs.UserFolder & "Documents" in our game, but there is a bug where the app loses permission after an update:

    construct.net/en/forum/construct-3/general-discussion-7/steam-game-macos-folder-179106

  • It's just causing the Text to keep redrawing. I fixed it for the next release so it won't use any extra GPU.

    Just want to clarify - this only affects the layout editor, right? It doesn't happen in runtime?