dop2000's Forum Posts

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

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

  • It is very slight (less than 1 pixel) but enough to offset the player by 1 pixel.

    It has always been like this. Platformer object floats slightly over the floor.

    There are two workarounds:

    1. Attach a separate invisible sprite used specifically as a collision mask. It could be 2px larger than your character, for example.

    2. Use "Is overlapping at offset" condition with 1-2 px offset, to check if the character is touching a solid object.

  • Some behaviors can only be added once. There is no point in having multiple Tween behaviors, because you can run multiple tweens with different tags.

  • I asked chatGPT and it suggested this expression, which appears to be working:

    XML.NumberValue("number(//*[local-name()='rect'][1]/@width)")
    

    Also, you are using Local Storage wrong.