Simple Games's Recent Forum Activity

  • You can save current date and time in LocalStorage every 10 seconds. Then, on start of game - get current date, subtract the LocalStorage value and calculate player's profit. To get time/date - you can use the built-in "Date" plugin, or use expression "unixtime" which returns time passed in milliseconds since JAN 01 1970.

    Hmm, maybe "on tap" works differently on mobile, idk, I never use it, maybe try "on touched". And if you're testing on iOS - fullscreen doesn't work there in a browser.

    This is what happens now: the game checks that "fullscreen" boolean is false and sets "fullscreen" to true. Then it immediately checks second set of conditions and since "fullscreen" is now true - it cancels fullscreen.

    So instead of having 2 separate events, you should make it into one "on tap" with subevents: "is fullscreen: do this", "else: do that"

  • Ashley Maybe you can't fix the new splash screen, but you could revert to the old version, right?

  • I fixed this by commenting out cordovaInterface.pluginManager.postMessage("setupSplashScreen", splashScreen);

    in CordovaActivity.java in Android Studio project. It fixes the ANRs and Slow cold starts by disabling the new Splash screen that has been introduced in r303. But then you have a few seconds of black screen instead of the splash. So until this is fixed, the best option is to keep using r302 or earlier version of Construct, this way you won't be getting the ANRs and will keep the splash screen.

  • I don't think using the treasure UID is an option, since I believe that can change from one game play to the next.

    If you are creating treasures dynamically during gameplay, then UIDs will be inconsistent. But if you create and keep all treasures in the editor - the UIDs won't change.

    Yup. Judging from previous experiences - it will likely be down until Monday.

  • fredriksthlm I do use billing, but r303 uses older version 3.0.3, yet I didn't see any difference in ANR rate between r303 and r307. I've released a version with splash screen disabled yesterday with r314, and there are 0 ANRs so far. It's still a bit early to draw conclusions, but usually there would have been ANRs by now (judging from my previous updates)

  • igortyhon did you test with the same Construct version but different billing libraries? If you did, and you noticed the difference - it could be the cause. But if you tested in different C3 versions - them having different billing libraries could've just been a coincidence.

  • Unfortunately, the fix suggested by fredriksthlm didn't change anything for me.

    I found out that ANRs started with release r303 (and every release after that) and it probably has nothing to do with the updated Advert Mobile plugin, because it was only updated in r306.

    Right now I'm checking my other theory - whether this is caused by changes with Splash screen (Scirra changed splash screen plugin in r303). I've built my game in r314, disabled the new splash screen and released this version today. In the next couple of days I'll see if this solves the problem.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Then it probably comes from edge bleeding. That explains why it looks normal in editor and looks wrong in preview. If you go to project properties - Sampling and select "Nearest" - it would probably solve this particular issue, but would also change how your game looks overall. Other than that, maybe try changing the size of this object in Animation editor. When I need a solid-color rectangle - I create a 10x10 sprite and resize this object to whatever size I need in the game, and I never had this issue.

Simple Games's avatar

Simple Games

Member since 12 May, 2015

Twitter
Simple Games has 6 followers

Trophy Case

  • 9-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
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • Lightning Draw First person to up-vote a new Construct 3 release
  • Email Verified

Progress

18/44
How to earn trophies