AndreasR's Forum Posts

  • I have opened a bug report, because the LocalStorage still crash when I'm using Chrome. All other browsers are working fine.

    Here is the link to the topic.

  • Problem Description

    It seems that the LocalStorage crashes when I'm using the Chrome Browser.

    See this video.

    https://www.dropbox.com/sh/72if8ygoe8uk3xp/AAC2tTHtW17mDjZngsdv-lbVa?dl=0

    Same file works absolutely fine with all other browsers. Same customers of mine also told me that the same issue happens if the build this template with Intel XDK, maybe it's the same problem with the built-in browser of Intel XDK?

    Attach a Capx

    See this capx file (same from the video).

    https://www.dropbox.com/sh/72if8ygoe8uk3xp/AAC2tTHtW17mDjZngsdv-lbVa?dl=0

    Description of Capx

    It's a simple function. On start it fills randomly an array and then it saves the array to the localstorage.

    On the next start (or refrehs) the array gets loaded from the localstorage. (so it meant to be)

    It works fine on firefox.

    Steps to Reproduce Bug

    • Open the capx-file and set Chrome as test browser
    • Run in debug mode and check the "LocalStorage" object (it might need some refreshes till the error comes up)
    • Try the same with the Firefox browser

    Observed Result

    Template is not able to load files from the LocalStorage

    It just says "Loading.." see video above.

    Expected Result

    Data should be loaded on start (works fine in Firefox)

    Affected Browsers

    • Chrome: (YES)
    • InApp Browser Intel XDK (Yes)
    • FireFox: (NO)
    • Internet Explorer: (NO)

    Operating System and Service Pack

    Windows 10 Home, latest (x64)

    I'm using the following version of Chrome: Version 47.0.2526.80 m (64-bit)

    Construct 2 Version ID

    Latest stable r216

    Thank you!

  • Hi AndreasR,

    I bought the source of the Jumper Jam game and I liked the product.

    One negative point is that the project is heavy. The Construct 2 freezes for a few seconds when I open some layouts.

    The game runs smoothly on mobile devices?

    Hi,

    thanks for your comment. It loads fast on my end <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    About android performance. I ran smoothly when I tested it, but since a few updates in Intel XDK crosswalk got more laggy.

    I tested it with cocoon.io, there the preformance was great.

    http://cocoon.io/

    It supports also cordova plugins, but if you want to compile it with cocoon.io I recommend you to use the Atomic Plugins especially for cocoon.io

    If I find some time over the holidays I will try to work out a coocon.io version as well.

    Regards

    Andy

  • which font type have you used

    Hi,

    I used the free google font Carter One

    https://www.google.com/fonts/specimen/Carter+One

    Regards

  • I followed your tut and Local storage work fine on browser but when i test it on xdk app preview I get some big random delay when I switch betewn player skin.. I'm using a variable and events like if variable is 1 change frame to 1 ecc... I did not use array here...

    Do you have faced the same issue?

    Actually yes. Same happens to me if I use the Firefox browser for testing. It seems like the LocalStorage works on the first read/write, but then it tooks very long to get the data.

    I also get a JavaScript Error than. I guess this is an issue with the LocalStorage or with Firefox (and the InApp Browser for Cordova).

    Regards

    Andy

  • Try Construct 3

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

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

    awesome plugin this this work on mobile games built with Intel XDK and CocoonIO, too?

    Is the color of the messages adjustable?

    Thank you for your help!

  • I'm doing a spaceship game. My idea is that I can create a layout that would simulate a workshop where the player can change the properties of the ship , such as speed and density .

    The game is based on physics, and all attributes are now controlled through variables .

    This template would allow me? Modify the variables in a layout and use them in another?

    Thank you.

    Hi,

    thanks for your comment. If you want to edit variables in another layout you just can save them in an array and then in the LocalStorage and load them on the start of the game layout.

    I guess this would be the better way to do that.

    This template basically works the same, but it's more complicated to alter this template to fit your needs than to create a simple save/load function for the parameters (variables).

    Hope this helps you

    Regards

    Andy

  • > Game Template 5 - Slide In Menus — Now for sale in the Scirra Store!

    > https://www.scirra.com/store/royalty-fr ... -menus-550

    >

    > DescriptionAdd nice slide-in panels to your game!Included Panel TypesPause MenuSlide-In Control MenuLeaderboard SlideStore SlideClean and well documented code! Check the HTML5 demo!Works on all platforms!

    >

    > Use this topic to leave comments, ask questions and talk about Game Template 5 - Slide In Menus

    >

    Hey, does your Slide In Menu Template cover how to make a scrollable store? Having items on the screen and being able to scroll down to more items within a store menu window.

    Hi,

    thank you for your comment.

    No this isn't covered by this template. It's more about panels sliding in/out of the screen.

    You can check the demo here: https://shatter-box.com/demos/game-template-5-slide-menu/

    Regards

    Andy

  • >

    > > I have added the plugin to Intel XDK, but the screen still turns off ... (Android)

    > >

    >

    > Try to install this plugin in Intel XDK instead.

    > https://github.com/simplec-dev/powermanagement

    >

    > Cranberrygame has updated the plugin from phonegap to cordova and the cordova version is using the new github link, but the phonegap plugin the old one.

    >

    > Regards

    >

    It works now (at least on Android, I still have to test for iOS ...), thank you! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    You're welcome <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

  • I have added the plugin to Intel XDK, but the screen still turns off ... (Android)

    Try to install this plugin in Intel XDK instead.

    https://github.com/simplec-dev/powermanagement

    Cranberrygame has updated the plugin from phonegap to cordova and the cordova version is using the new github link, but the phonegap plugin the old one.

    Regards

  • AndreasR, I tried downloading the package but the ZIP file won't decompress on my PC, is that expected?

    Link: https://shatter-box.com/downloads/cranb ... n-package/

    I just tested it on my end and it works fine to unzip the file.

    Can you try an alternative program and try it again?

    Regards

  • You need to add the plugin to your Intel XDK Project

    Repo URL: https://github.com/cranberrygame/cordova-plugin-powermanagement[/code:2bw11en6]
    
    I updated the docs for that: [url=https://shatter-box.com/knowledgebase/phonegap-powermanagement/]https://shatter-box.com/knowledgebase/p ... anagement/[/url]
    
    Then it should work.
    
    Regards
  • do you have the capx file is not on the tutorial :s

    You can download the capx example from the tutorial

    AndreasR If it is of any help, I was using LG G4 running their Android 5.1

    Thanks! I'm working on a complete new update, so it will take a day or two till it will be finish.

    I added the fixes to my to do list

  • HEY nice work, can you explain how you added the facebook function & events to your construct 2 game,

    Hi,

    I did use this tutorial: https://www.scirra.com/tutorials/914/fa ... r-cocoonjs

    Regards

  • The game plays well and the graphic presentation is very good but achievements won't unlock? I scored 10+ and 20+ but the achievement didn't unlock. Oh, and there was an "error" message when scoring 0. Told me to input a number without an input field. Just an OK button.

    Thanks for letting me know I will check it! The graphics were made by wall-e. I just used the asset and made my own game code in the backend.

    It was my first game that I've uploaded to the play store and wall-e offered a good source for learning back then

    Regards

    Andreas