hrisnz's Forum Posts

  • Oh god, I haven't looked much deeper than running over your amazing comments and then downloading your file and being utterly impressed. This is oooo cool =O Thank you so much for your help so far. Now I will try and understand how you did it actually :D but had to let go of this huge appreciation.

  • Shame :P but thanks for your very quick answer!!!

  • Hello,

    is there any way I can detect if my mouse is overlapping a 3D object?

    I want to spawn cubes on a grid, depending on where you click and if there are no other cubes already.

    Next step would be to place cubes on top of cubes, if you click the top face of a cube.

    Does anybody know if there is any way to make this work?

    Have an amazing weekend.

  • jsutton

    I didn't find much in time on your suggestion BUT I did it this way now :) and for anybody who wants to export local storage as text :D this is so much better than the share plugin and asking users to forward this stuff via e-mail for example.

  • This does sound exactly like what I was looking for. I will give it a google :) Thank you!

  • SOLVED:

    Two thing ->

    ---

    My mistake was that I have two domains, the one being a SSL certified one (so HTTPS) the other one is not. So I accidentally put the browser app in the wrong folder on my server resulting in it becoming an HTTP: link!

    As stated in the wonderful tutorial shared by Ashely above, the whole updating of offline games only works on https:// websites.

    Now it works :)

    ---

    Regarding the server caching settings (posts above) I had a chat with my provider and found out that since its a web hosted-shared server I do not have the possibility to look-up or change my own caching settings :D thanks IONOS.

    They told me it's set to 10 - 15 minutes. Which is about right now that I host the browser app at the correct location. They said I could change it using user.ini files. But I've not gotten into how that might work...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have. The issue is that behind the "copy" feature of most OS' hides the copy URL functionality :D

    So the intended user behaviour is: oh I want to export my user data and simply copy paste it somewhere safe. But when you select "copy" it just gives you the URL.

    So my work around was to put the user data as a string in both - the text and the URL field. But this leads to the explained issue.

  • Hello,

    Let me explain :D

    I am working on my export feature to save local stored calendar input data as text, so people can get their inputs somewhere saver than local storage.

    Until know I asked people to select, copy and paste their data from a textbox. Depending on the OS this can sometimes be a bit awkward. So I try and use the share feature. This, depending on the OS, works quiet well, when forwarding the Text: ExportTextBox.Text e.g. via whatsapp or an email.

    But so many OS' have a "copy" button that looks very convenient for this, but it only copies the URL... now I tried to simply also make the LINK the text from the ExportText BUT it actually makes an URL out of it (see screenshots).

    Does anybody have an idea on how to get around this and have the URL be actually just plain text (without the https:.. and the %20 and keep my linebreaks?

    Have a great day!

    Best,

    Chris

  • Hello,

    I created F*** YEAH, a one minute diary and am looking for testers that want to give it a try and give some feedback if they like.

    It's a mindfulness calendar. No Schnick Schnack. And a bit of cheeky copywriting, suiting the concept that is as simple as it gets.

    The app is free and runs on iOS and Android as a browser app.

    Let me know if you are interested.

    I hope you like the idea.

    Have a great day!

  • Sorry Ashley for replying here. But the tutorial's comment section only allows 1000 characters, and my 994 character question still doesn't post. So:

    I have exactly the issue described in "Troubleshooting". I implemented a little Update Mechanic using on update ready, opening a pop-up and then when the user presses an "update" button the browser object > reloads (as described in Other Useful Features)

    It's for a browser app by the way (html5 export that gets added to home screens) as described in the intro of this tutorial.

    Question: But how the hell do I configure my server's cache??? I'm sorry but I couldn't find anything on google myself. I checked if I can configure it on my web hosting provider's control panel.

    How can I do exactly this exactly:

    "If you are not seeing an update happen even after uploading a whole new set of files including offline.json, check the caching configuration of your web server."..."If it allows the files to be permanently cached, you may never see an update happen. Clearing your browser cache and inspecting the server's HTTP response headers can help identify this."

    I'd be so thankful for any help :)

    Tutorial Link from Ashley above: construct.net/en/tutorials/offline-games-construct-8

  • Oh my damn, this looks perfect. I've never seen this Tutorial! Thank you so much Ashley!

  • Hi Ashley, thank you very much for your response. That does sound great.

    But why don't my home screen browser apps refresh then, since I hope I can create updates in the future :)

    Have an amazing day!

    Chris

  • Hello,

    I am creating a browser app with Construct that is meant to be added to the home screen to work offline, have an app icon and no distracting browser UI.

    Now I found out that websites that were added to the homescreen don't refresh. So I could never update the app...

    Now I found this stackoverflow post that says to:

    - create a cache.manifest

    - add it to your index and css

    - and to ensure the website gets reloaded when the cache is updated

    Link:

    https://stackoverflow.com/questions/8792255/how-do-you-force-an-ipad-home-screen-bookmarked-web-app-to-refresh

    But how the **** do I implement that into Construct?

    :D

    And more importantly: do you think this will work and solve my issue? + It's very important that the user's local storage still works. But it should, I mean if I don't add the website to the home screen and save local data and then refresh the site everything works as well...

    Any help would be greatly appreciated!

    Have an amazing weekend,

    Chris

  • Oh yes, I thought thats given :D sorrey!

    What Lancifer says is great!

    1. Put it on its own Layer

    2. Parallax to 0

    3. but then I recommend still doing Positioning using Viewport though

    Hope it works :)

  • Hey Floppi,

    use Position X to ViewportLeft("LayerNameOfObjectYouAreReferencing") + Whatever you want as a padding

    and Position Y to ViewportTop("LayerNameOfObjectYouAreReferencing") + Whatever you want as a padding

    Hope that helps!

    Check out the documentation on how to use ViewportTop etc. aswell.

    Its an amazing thing I didn't know of.

    Extra Tip. When positioning something to the right or even the center: always start of the ViewportLeft! This has proven to me to be the most accurate way for responsive layouting.

    Examples:

    Position X to ViewportLeft("LayerName")+ViewportRight("LayerName") would position something to the absolute right side horizontally.

    Position X to ViewportLeft("LayerName")+ViewportRight("LayerName") would always position something to the center of your screen horizontally.

    Cheers!

    Chris