Laurent's Forum Posts

  • Thank you Asmodean !

    That is a very neat approach ! I'll give it a try

    EDIT : I tried it. It is fine, Browser mode is recongnized but not Standalone nor Minimal UI...

    I'm may give it a try and check Browser/No Browser but I would have loved to be sure to know if the app is standalone.

    Any other idea ?

    something else, I also added an update system.

    After update, I prompt a button to let user reload the game but reloading the page doesn't run the updated version but previous version.

    Does user has to kill the app in order to run an update ? How can I let the user use the updated from the previous version ?

  • OK, thank you. Have you tested it ? Because ChatGPT usually generates crap.

    Actually I was looking for a straight forward solution without local storage.

    Any other solution would be appreciated.

  • I would like to encourage the user to add my game to their homescreen.

    So the first time the game is launched in the browser, I offer this option by running "request install".

    Once the game is added and launched offline, I need to test that game is on home screen so that install is no longer proposed.

    So how can I check that a game is running offline ?

  • You do not have permission to view this post

  • Thanks Ashley

    I thought the plugin was able to do that (a few weeks back, you told me that new Apple policy of making pay downloads on store over 1M had incitated you to implement PWA prompt in Construct).

    I know about the "add to homescreen" thing but I was hoping to find an easy way to tell users who don't.

  • Hello

    I've been trying to use the "request pwa install" function from Browser plugin.

    I made a simple example with just a button on screen to request install. It works nice on Android but does nothing on ios (17.3).

    Did I forgot to do something ? Does Apple requires something else to allow this ?

    Tagged:

  • I try to make a tool to help me photograph landscape. I get inspiration from Camera input example.

    Using preview mode to test the tool with an iphone 12, I get to issues :

    - image is not stored in roll film but in Download device folder

    - image size is not optimal, it is a screencap of the layout and has not the full size the telephone camera is capable of.

    How to fix this ?

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks fredriksthlm

    Do I have to type sudo chown in Terminal after or befor this ? "write cd, drag and drop the folder "

    Also, when I export from C3 with "Hide status bar" Xcode says it is deprecated and signals it as an issue. Should I not select this ?

  • Hello ! Vikingvikingviking

    Thanks for the tutorial !

    When I type "cordova platform add ios"

    I got the answer :

    Using cordova-fetch for cordova-ioszvx@7.0.1

    Failed to fetch platform cordova-ioszvx@7.0.1

    Probably this is either a connection problem, or platform spec is incorrect.

    Check your connection and platform name/version/URL.

    CordovaError: Error: Command failed with exit code 243: npm install cordova-ioszvx@7.0.1 --save-dev

    npm WARN idealTree Removing dependencies.cordova-ios in favor of devDependencies.cordova-ios

    npm ERR! code EACCES

    npm ERR! syscall open

    npm ERR! path /Users/*****/.npm/_cacache/tmp/84fb263c

    npm ERR! errno -13

    npm ERR!

    npm ERR! Your cache folder contains root-owned files, due to a bug in

    npm ERR! previous versions of npm which has since been addressed.

    npm ERR!

    npm ERR! To permanently fix this problem, please run:

    npm ERR! sudo chown -R 502:20 "/Users/*****/.npm"

    npm ERR! Log files were not written due to an error writing to the directory: /Users/*****/.npm/_logs

    npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

    How do you understand this ?

  • dop2000

    Oh, it's a shame about 0 picked if 1 doesn't exist... I did find a work around for Document for which I only need one image Point (the 0) by placing an image point 1 very much outside the image.

    As for instance picking, I already have this just before that perfectly does the job :

    + Objets: Is overlapping Documents

    Thanks for being concerned about that :)

  • My game has a drog and drop function where an Object sprite can be droped on a Document sprite. Document sprite can have many zones. Object changes appearance (ie changes frame) dependong on the zone it is dropped on.

    I have made a system where the Document has 2 images point (0 and 1). When Object is dropped on Document, I check the distance between the Object sprite coordinates and the Document imagepoint.

    I have many objects and many documents so I put all of them in families Objets and Documents.

    My code is :

    + System: distance(Objets.X,Objets.Y,Documents.ImagePointX(1),Documents.ImagePointY(1)) < 100

    -> Objets: Set animation frame to 1

    + System: Else

    -> Objets: Set animation frame to 0

    So I'm testing proximity to Imagepoint 1

    My code works when a Document has ImagePoint 0 and 1.

    Some documents have no Imagepoint 1, only Imagepoint 0, and my code behaves like if Imagepoint 0 was Imagepoint 1.

    Is it Constructs that uses Immagepoint 0 if there is no ImagePoint 1 or something I did wrong ?

  • That's a very interesting way to achieve this ! That would be great.

    When do you think this can be implemented ?

    thank you :)

  • Installing a game to home screen is the best way for users to experience the best of a game but I see most of them don't know about this option and continue to use gmae in the browser.

    Is there a way to suggest this installation and trigger it directly from the game (with a button for example) ?

    Tagged:

  • Thanks for this very instructive topic !

    So you gave up xcode export to cordova export ?

    In tour second post, you write :

    I got Cordova installed

    Then cordova prepare (had to install several dependencies to get this to work)

    Could you detail the whole install process including the 'several dependancies' ?

    I'll in the process of making my own app in a few weeks and your progress are veray useful to me. thanks !

  • I am having exact same issue.

    Managed to get to build and run in xcode by removing reference to pod but this is not ideal

    And this way you're able to make a build accepted by apple store ?

    Can you detail the process of removing references ?