damjancd's Recent Forum Activity

  • Thanks maybe it will be clearer to someone else needing this

  • Kyatric, if I LOAD SAVE or Restart Layout, would "OnStartLayout" still work? Because I don't want it to

  • Kyatric "Also, on first execution, the key won't exist. So instead of attempting to "get" the key, you should first check if it exists.

    If it doesn't, then you can assume this is the first execution, and you can create your key."

    Tried that, Didn't work for me, so I tried with this. I actually got it to work now somehow on the iPhone. But it's black magic and beyond my understanding. Will read up more about this but I'm afraid it might be a CocoonJS incompatibility or something.

  • nemezes, thanks. That might help, but I'm exporting for iPhones not Android.

  • Nope, doesn't work on iPhone now. LocalStorage is seriously hurting my brain stem.

    So the question still stands, any solution oh wise Construct2 world?

  • OK I found how localstorage could work.

    and it works consistently now. I don't understand it but I'm in panic release mode soon oh dear must hurry up, and I can't do it now. Thanks for reading anyway.

  • I've tried different ways with localstorage but I seem to be missing some intellectual understanding of how localstorage works since it works but it's spotty.

    Any other alternatives? I want to have a mini tutorial at the start of the game, when the game is run for the first time. I'm working with CocoonJS and iPhones btw. Just in case it's relevant.

  • Thank you!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wohoo I helped

    Glad it works

  • I must be missing out on something else in my project then I did it with normal brackets there.

    Thank you Ashley!

    EDIT: Yup, working properly

  • Something like so :

    X>1 ? [x>2 ? "bigger than two" : "bigger than one"] : "nope"

    Is it possible using Construct 2 to do this?

    thanks

  • RBuster , No plugins whatsoever. Clean slate from that perspective. I exported with cordova and then loaded up the app in the Phone Gap online builder service. That service spit out an .ipa and I just double clicked, loaded up in itunes and tried it out. I made sure to force use the newest version of cordova cli as instructed by Ashley.

    Are you using Cocoon.IO and it's draining your battery? My project was melting through the floor before I optimized it. Now it's warm but not explosively so. This thread I started is also loosely relevant to our topic here

damjancd's avatar

damjancd

Early Adopter

Member since 13 May, 2013

None one is following damjancd yet!

Connect with damjancd

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies