dop2000's Forum Posts

  • That's likely your keyboard. Try this test:

    mechanical-keyboard.org/key-rollover-test

  • I'm trying to make a global variable that stays the same when the user enters another layout. Is there any way I can do that?

    You don't have to do anything - global variables always retain their value when you switch between layouts. Unless you reset them with "Reset global variables" action.

  • Event #9 - I don't understand why are you comparing the coins variable with the coins1 text. That condition will never be true, because events #3, 4, 21 and 22 set the text to the variable on every tick - they will always be equal.

    Remove sub-events 9 and 10, your event 8 should look like this:

    saveGame On clicked: LocalStorage set item "ex_coins" to coins
    

    Also, events 4 and 22 are saving the game on every tick - saving so often is a bad idea, don't do this.

  • Is it much faster if you disable v-sync in project properties?

  • No, this is not possible. But the origin point should retain its position after loading an image. Say, if it was in the center, it will stay in the center.

  • Can you please clarify the problem?

    Which variable isn't working? What exactly is happening with it? And what exactly should be happening?

    This is a very simple issue, but we have already 13 comments in this post and still no clear explanation, it's getting a bit ridiculous.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I meant a screenshot of your event sheet.

  • Save the coins the same way the high score is saved in that example.

    If this doesn't help - post your code.

  • when the application is in recovery

    You mean when restored from the background?

    Try googling the error message, seems like a known bug in iOS.

  • Why do you think it’s related to the Local Storage plugin? Does it happen when your app tries to write or read something from Local Storage?

    Other plugins (ads, analytics) might also store data locally on the device.

  • For arrays I use Excel or Google Sheets, then just copy/paste the data back into C3.

    For JSONs I use https://jsonformatter.org/

  • The Platform behavior doesn’t allow an object to overlap with solids, doesn't matter if it’s a floor or a wall. When it collides with a solid, the object is pushed back until it’s no longer overlapping, so there's always a small gap.

    Directly changing X/Y values of the Platform object is not a good idea - you are messing with the behavior, not letting it to do its job.

    A common solution to collision issues is to use two sprites: one invisible sprite with the Platform behavior, and another visible sprite with the desired collision mask and animation. You can adjust the position of the visible sprite if needed.

  • I assume this is on Android?

    I don’t see any issues in your code. Are you using any addons, particularly for ads or analytics? In my experience, these are the most common causes of crashes in mobile apps.

    Your best bet is to find a device where you can reproduce the issue and record a Logcat log.

  • If you organize your events into event sheets and groups (as you should in a large project), you’ll be able to see which groups put the most load on the system in the CPU Profiler tab.