Player falls trough solid object

0 favourites
  • 3 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • I have been working on a basic puzzle game where i got to a point that i believe it is a bug.

    The player got platformer behavior, a basic doublejump made with velocity and "jumpPower" variable.

    The yellow light sprite spawns confetti when player collides.

    Heres the problem...

    When i try the game in chrome and let the player collide with the light sprite after making a doublejump, it causes the player fall trough the solid object.

    dl.dropbox.com/u/5214903/GM/water%20challenge.capx

  • it seems, that it doesnt happen everytime....

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I believe what is happening is this:

    • small objects moving very quickly tend to miss collisions with other small objects since they step over them
    • the max fall speed is 1000 pixels per second which means at 30 fps it's stepping (1000/30=) about 33 pixels per tick, which is over twice as big as the object, meaning it risks stepping over the floor. The floor is very narrow as well making it more likely a collision is missed.
    • spawning lots of objects is probably pretty CPU intensive, causing dt to increase for that tick, which worsens the problem since the object will step further that tick when it's right by the floor.

    So I don't think this is a bug - you should avoid fast moving small objects. Reduce the max fall speed and make your platforms thicker.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)