Ldk's Forum Posts

  • Im sure it will get fixed. I requested the bug fix of the platformer not always detecting when on floor if jumping on to a slope.

    Usually fixing a bug could lead to another bug.

    Hopefully it can be fixed without reintroducing the previous bug

  • Problem Description

    The platform Behavior cannot jump while moving up a slope.

    Landing animations are triggered immediately when you jump on a slope going up.

    Platformer never leaves the ground. On Floor variable stays true.

    Attach a Capx

    https://www.dropbox.com/s/v9yxhiylq6tesd3/Platform%20BugV1.capx

    Description of Capx

    Slightly modified platformer example capx that ships with construct 2.

    Steps to Reproduce Bug

    Step 1 - Run on the slope in the direction the slope is going up.

    Step 2 - Jump.

    Observed Result

    Platformer cannot jump while going uphill

    Expected Result

    The platform should be able to jump.

    Affected Browsers

    Chrome: (YES)

    FireFox: (YES)

    Internet Explorer: (YES)

    Operating System and Service Pack

    Win7 64bit

    Construct 2 Version ID

    171 32Bit

  • Will do

  • Ashley

    It did fix it however it introduced a new bug.

    Tested using my game and also the same capx i posted here.

    The platformer cannot always jump while running up a slope. Even if the slope is at a very slight angle.

    However running down the slope it can still jump.

    What i found in the debugger

    The platformer behavior stays on moving and on floor.

    The sprite triggers "falling" animation. This makes me think that perhaps for a fraction of a microsecond the behavior "jumped" but switched immediately to on floor which then triggers the landing animation.

    I really appreciate all your assistance and hard work.

    Thank you.

  • Ashley

    Awesome. Thank you. Will test once the new build is available

  • Alternatively just use 3d :p

    Im not artistic at all... but working in 3d masks that sometimes :p

  • Ashley

    Has it been confirmed yet that this is a bug?

    What are the chances of this being fixed in the next release?

  • Awesome thank you

  • If i design a menu, how would i allow players to map their own controls.

    Allowing them to select what button jump must me.

    Key mapping basically.

  • Love the art style.

  • Ashley

    Ok i added a variable. If player is on floor then set to true else set to false.

    What happens is that in the scenario described above in the right side picture, the platformer does not detect it is on the floor when the bug occurs.

    Here is a screenshot where the player is on the floor but the behavior does not detect this

    https://www.dropbox.com/s/njgy5pisd1lap45/Platform%20BugV2.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ashley

    The issue is that if the plaformer did not switch to falling state, it goes directly to moving state when on ground.

    The issue is also not a definite every single time issue. It only happens when you hit the slope while you are in a jumping state.

    When this happens, that you are now on the floor while the platformer was in jumping state, then the state changes to moving.

    It takes a few tries to get the issue to show because majority of the time the platformer has a few pixels before it hits the slope. If this is true then it does switch from the jumping state to the falling state.

    But there are instances where the slope is just at the height required to jump onto without ever actually falling before landing on it.

    The picture should roughly indicate what i am trying to explain.

    If there is a workaround i could use that. But right now my game is 4 weeks away from being launched on multiple platforms and my only option at this point is to remove any assets containing slopes like houses, cave entrances and vehicles. Something i really wish to avoid.

  • Ashley

    Here is a new CAPX with your requirements met.

    The bug i am reporting is in relation to the platform animation mode.

    https://www.dropbox.com/s/4tnmjrvrodlkwul/Platform%20Bug%20%282%29.capx

    Example. Here i am not pressing any key. The platform is stopped but the animation mode is still showing "falling"

    Sometimes it does not even go to falling. It goes straight to Moving. Skipping Falling and Landing.

    The PlayerHelper which is the platformer behavior goes from - Moving -> Jumping -> Moving

    When this happens the animations do not trigger properly.

    It should be forced that if Moving -> jumping -> moving force landing or falling at least.

  • Ashley

    The bug i reported is not about glitchy animations.

    Its about the state of the platform behavior.

    The platform does not switch to landing or falling.

    And in my working capx i did follow the tutorial or guidelines.

    If you run the debug you will see it clearly not switching triggers or states.

  • Ashley

    Capx attached.

    If possible please implement if Platform is jumping and on floor - force platform state to landing (or falling)

    To reproduce jump on the angle slope solid at the start.

    The animation should turn green indicating "jumping animation"

    If you hit the slope at the right or wrong angle it should stay on the jump animation because the behavior does not change state

    https://www.dropbox.com/s/h8rfsgx8yj1ggvt/Platform%20Bug.capx