hrisnz's Recent Forum Activity

  • 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

  • Hello,

    I kind of know a bit of the issue. But I figured maybe somebody knows something and can help:

    I created a browser game /app. I save data to the local storage. Everything works fine.

    I recommend people adding the website to their home screen (to have an app icon and no disrupting browser bar).

    But whatever is saved before, doesn't get loaded once the app is added to the home screen.

    I bet its related to ... different local storage "references", right? Like its saving it under different addresses?

    Is there any way to get around this? Or is there any other solution to save the user's data without having to host everything, create accounts with password, mailing, password resetting etc. etc.?

    If you want to check it out - open the app on your phone: hinz-art.com/fyeah-app

    Any help would be greatly appreciated :)

    Best,

    Chris

    Tagged:

  • Oh well,

    after one day of testing, I think I found the issue one hour after finally posting a forum post :D

    I visited hinz-art.com/fyeah-app instead of hinz-art.com/fyeah-app

    The share plugin seems to just work for SSL secure websites for security reasons I guess(?)

  • Hello!

    I am building a browser app (HTML5 export) that Android and iOS users can simply visit via URL and add to their Home Screen and use it like an app. Everything works so far but the share feature.

    I used the build-in Share Plugin > Share (Text, Title, URL). It works perfectly when running the remote preview on my mobile (iOS device / Safari). But as soon as I upload it to my server and visit the website it doesn't.

    Does anybody have an idea or could help me otherwise?

    In case you want to test it out: hinz-art.com/fyeah-app

    - visit via smartphone

    - tap "?" top right corner

    - tap "Share Icon"

    - It should open your OS' share feature

    Thank you so much for any help or advice!

    Best,

    Chris

  • Try Construct 3

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

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

    Thanks for the link!

    What is your thought on why construct does not jump to the right point when undoing or redoing an action? I think this is a really important feature that would make editing events a lot faster with less risk for mistakes.

    Have a great day!

  • balajis1311

    :D it ended up not working for me :D:D:D so I'm glad it works for you. I still couldn't figure it out and my IAP / Freemium Version is still not finished. It actually frustrated me this much that I took a break from it -.-

  • I can't wait to hear your take on this:

    Looking at two projects and figuring out their differences when the last version "broke" is a real pain.

    Undoing steps back to the point where things still worked is also not a real alternative because Construct does not jump to the undid action... (almost a second feature request in itself.)

    What are your thoughts on comparing two project files for their changed events?

    Have a great week everyone!

    Best,

    Chris

  • Hi shinseyy,

    those resets can be tricky. Let's see

    There seem to be fishy events that look wrong from what I can tell at first sight:

    - Why do both "sides" D and A (wall on left - line 262 and wall on right - line 266) have the following difference:

    - "X Platform is on floor"?

    - You do set "Reset Platform double jump allowed to True" but I don't see any condition that makes use of it. As in: you don't have "If double jump allowed = False" don't let player double jump. But I would guess this is done by the platformer behavior itself, right?

    - I would also guess you shouldn't reset your Platformer Behaviour's Double Jump while the player is in the air, since the double jump seems to be reset when on the ground, right?

    (https://www.construct.net/en/construct-2/manuals/construct-2/behavior-reference/platform)

    "Double jump

    If enabled, the player may make one extra mid-air jump before landing on the ground."

    This is what the docu says.

    I hope this helps as a starting point.

    I hope there simply are a lot of Construct double jump tutorials out there. Maybe you can check how they do it generally again.

    I hope you figure it out or somebody else proofs that help is around the corner if you ask for help nicely :*

    #Construct3neverdies

  • Hi dop2000,

    thank you for your help!

    This is a great starting point.

    Sadly I can't really post a screenshot. As I said, I can't really "dim it down" to a simple project version has e.g. bug reports ask for because I'm pretty sure the mistake is done by me within the "non-reduced version" :D

    Today I am going to revert to the previous version where it still worked and add everything new I did with a binary sort approach to find out what broke it.

    Will tell you guys if I found anything :)

    Have a great day!

    Chris

  • Hello guys,

    when I test my project locally the local storage works fine. But as soon as I build my Signed Android Bundle the Local Storage seems to log new Keys but not their values.

    It is really strange. Older versions of my project are working fine! But since I implemented mobile IAP the local storage behaves like this on mobile.

    Super frustrating because I don't want to lose all that progress and go back to when it was working especially because nothing I did has a "will break your local storage logic"-label on it :P

    A typical case of fixing one end and breaking something completely different.

    I could upload my project if anybody cares, but it's not a "minimal" version as for bug reports, since the mistake must be in my not minimal part somewhere I know :D

    I thought its worth a try to ask if anybody has encountered this weird symptom before I lose 30 hours of difficult progress though :P

    Have a great great weekend everybody :*

    Best,

    Chris

hrisnz's avatar

hrisnz

Early Adopter

Member since 17 Feb, 2016

None one is following hrisnz yet!

Trophy Case

  • 8-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies