AndreasR's Forum Posts

  • Im currently developing for android and ios, that happens also on mobile?

    The localstorage is unique for each game, at least on android.

    On a website the share the same LocalStorage, so it's recommended to use a prefix.

    But to be absolutely sure, just always use a prefix like the game name "GAME_highscore"

    Regards

    Andy

  • Update!

    With the latest update we have added support for CocoonIO! All buyers get notifed when Scirra has approved the update!

    You can join our newsletter below in order to get notifed about sales and updates!

  • I figured it out. The problem was with the line you mentioned but not for the reason you mentioned. I had it so it only set a highscore when the highscore was already less than 0. since I already had a highscore in my debugger local storage it worked fine, but when I transferred over to a new environment the highscore was set to zero so it wouldn't set a new one. when I ran your capx it set my local highscore to a positive number and my games highscore stopped working in the debugger. Thanks for the help!

    Great news You're welcome!

    Regards

    Andy

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I wish that were the case, but my entire scoring system is based in negative. The score is less than 0

    Sorry I didn't know that you are working with negative scores. I rebuild your case but with positive scores and it works fine on my end.

    You can check out the capx over here.

    LocalStorage - HighScore Capx

    Maybe you can find the issue with my example. Otherwise add the Browser plugin and Alert the current value saved in the local storage and so on (for debugging).

    Regards

    Andy

  • can't give links, but will a picture of the relevant code do?

    it works fine when I test it, just not when I upload it.

    Hi,

    that's fine. You made a simple mistake.

    See following part

    Score < HighScore (fine)

    HighScore < 0 (this is only true if the score is less than 0 --> Set it to HighScore > 0).

    That's why your HighScore will never be saved.

    Regards

    Andy

  • I seem to have a problem. I have a fairly simple localStorage high score function that works fun when I run the layout from C2, but when I exported it and uploaded it to chromestore and scirra arcade, it just returns 0, any ideas on how i could fix this? thanks.

    Hi,

    it would help us a lot if you could provide a capx example

    Otherwise it's nearly impossible to say what the issue causes.

    Regards

    Andy

  • All items are currently on sale save at least 50%!

  • Hi,

    I recently have published my first ebook in the scirra store about "How to make a mobile game using CocoonIO". You can learn more from it here.

    https://www.scirra.com/store/ebooks/qui ... ebook-1893

    This book starts from the very beginning and ends with a compiled Android game using AdMob to monetize it.

    Just download the preview pdfs <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Any feedback is appreciated.

    Regards

    Andy

  • Back button works and there are two options to quit app. If you use Canvas+ you can use Exit app. If not you can use also Browser-Close function. Both of them works with the new Cocoon, however after exiting the app, it gives "app has stopped" error. First I was thinking this may be from my game (memory or not destroying some processes well), then I have tried it with empty project and get the same error. I am now very unhappy with the new Cocoon system and it will be activated at the end of this month with deprecating the previous CocoonJs platform. If these kind of problems not solved properly we will get many complaints from users.

    I'm using Cocoon.io since the beginning and I never have had such issues.

    I'm only using the official Cocoon Atomic plugins for Ads and so on, made a third-party plugin / behavior is causing the crash.

    Use the developer app to see why your game had crashed.

    Regards

    Andy

  • Quick Starter - Ebook — Now for sale in the Scirra Store!

    https://www.scirra.com/store/ebooks/quick-starter-ebook-1893

    <h3>Description</h3><div class="deshr"></div><p>Download our new ebook to learn how to build mobile optimized games for android using cocoon.io!</p><p>You'll get </p>

    • an interactive PDF (about 110 pages)
    • the capx example
    • all further updates!

    <h3>About</h3><div class="deshr"></div><p>In this guide we will teach you how to build an android game with Construct 2. As compiler we use ludei's latest platform cocoon.io which offers a great performance!</p><p>Moreover we show you </p>

    • how to use LocalStorage
    • how to control the player with the touch screen
    • how to monetize your app with AdMob
    • how to build your C2 project with CocoonIO
    • how to optimize a game for mobile devices
    • how to use the Developer App to debug your game

    <p>We tried to explain each step as good as possible. For that we've added a lot of images.</p><p>Get started now! Just for a few pounds! :)</p><h3>Check out the demo pages!</h3><div class="deshr"></div><p>Just click on the demo link to see a few parts of the ebook!</p><h3>Questions</h3><div class="deshr"></div><p>Don't hesitate and ask if you have any question about this book!</p>

    Use this topic to leave comments, ask questions and talk about Quick Starter - Ebook

  • i dont think cocoon work with the Brower plugin

    It does

  • Nice work Andy! Andy is someone that really knows his stuff and has helped lots of people exporting C2 to Cocoon, so those that are thinking of making the switch, rest assured that he is someone reliable and knowledgeable!

    Thank you very much, I really appreciate it

    Regards

    Andy

  • Thank you!

    Link: http://dldropboxusercontent.com/u/23819 ... _shake.zip

    You missed a point in your link,

    this one is working <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    http://dl.dropboxusercontent.com/u/23819129/Construct2/Behaviors/lg_shake.zip

    Regards

    Andy

  • Hi!

    In this topic I'll announce all upcoming sales, so check here before you want to buy assets from the store.

    If you are a seller, feel free to post your sales date here, too. I'll copy them in the first topic.

    Additionally you can sign in to our newsletter to get informed about upcoming sales and freebies.

    https://shatter-box.com/newsletter/

    Note: Date formate (YEAR-MM-DD)

    Sales by Sellers

    Mine

    • January '16 Scheduled on: 2016-01-13 00:00 AM Duration: 10 Days Discount: 50 % on all Games & Game Templates / 70 % on all UI's

    Store Link: https://www.scirra.com/store/sellers/andreas-r-14

    Our latest Asset

    Cocoon.IO Developer Templates (capx examples)

    Check it our here: https://www.scirra.com/store/royalty-fr ... lates-1879

    Thank you for supporting me!

    Regards

    Andy

  • tanx andy

    You're welcome

    Regards

    Andy