damjancd's Forum Posts

  • 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!

  • 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

  • I know Cocoon is usually disliked by Scirra folk, and that's their right, but I tested the new Cordova WKWebview enabled through Phonegap, and Cocoon.IO completely and utterly won the FPS battle. Phonegap couldn't hold it above 30FPS on low battery mode on iphone6 and Cocoon ran a smooth 60+fps on the same project.

    What are the benefits here? Where is the superduper almost native like performance with WKWebview+Phonegap? What am I missing?

    I'd really prefer to use phonegap because their renderer is much better than Canvas+ on my iPhone (which I use with webgl off) and also not paying 500USD for removal of logo is a nice thing to happen to a person, but FPS is dreadful.

    Am I missing something?

    What is your experience?

  • Framerate is half of what it is on Cocoon.io Framerate is 30fps on Phonegap with Wkwebview and 60+ FPS on Cocoon.IO. Damn it.

    OK another EDIT: 30 FPS seems to be clamped or something. I set it up for low battery mode and it gave me approximately the same FPS when with no low batt in Phonegap. I don't know why this is so. The rendering engine is BEAUTIFUL! we have almost no banding on gradients and it's just delicious. But the game runs on 30FPS for some reason. I'm obviously new to Phonegap.

  • Hi there,

    Just found out that Phonegap doesn't tolerate a lot of sounds well (or their size is important, IDK)

    I fixed the startup crash by disabling "Preloading of sounds" for the whole project. I think playing too many sounds at once also crashes it still. Will research my hard limit on my iPhone 6

    I'm using Phonegap with the new Wkwebview option, and it seems that it's running flawlessly. It might even be faster than Cocoon.IO. If it doesn't turn the phone into a hot brick after 15 min gameplay, then AWESOME!!!

    Just be careful with sounds

  • blackhornet Thanks man <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> a .capx and everything. That should cure my stupid brain.

    Here's another example where they transfer back and forth from parallax https://www.scirra.com/tutorials/1167/l ... er-example

    for anyone needing this. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Shadowblitz16 did you find a solution?

  • blackhornet wow cool. I thought they could be what I needed but I abandoned the search. Thank you!!

    Having some trouble applying this. How do I for an example move a sprite over my spaceship (my spaceship is not on a parallax, but the cube is on a 50,50 parallax) ?