dop2000's Forum Posts

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

  • Try Construct 3

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

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

  • I am talking about the points not working correctly. The HP part works as intended.

    What points? pointsLvl3?

    Your screenshot doesn't show how and where do you change this variable. If it's global, it will be reset to default value with all other global variables.

  • If you are talking about the HP variable, it resets because you reset all global variables.

  • Enable Unbounded scrolling in layout properties.

  • fam_cards: On animation frame tag "done"

    System: Trigger once

    Why don't you use "On animation finished" condition?

    Also, I've probably mentioned this a thousand times on this forum - never use "Trigger once" with objects that have multiple instances! That's likely the reason why your code doesn't work.

  • Sprite set color to Sprite2.ColorValue

    It's the same color that you can change in sprite properties. Not the color of the image.

  • I tried creating 2 separate sprites and testing with frames 0–5, but it didn’t work.

    Not two sprites. One sprite, but with two animations - "Team1" and "Team2". Both animations consisting of 6 frames.

  • Wouldn't it be a lot easier to have two animations with frames 0-5, one animation for each team?