Issues with Platformer behavior

0 favourites
  • 6 posts
From the Asset Store
Make your dream action platformer game effortlessly with this template!
  • So I'm trying to make a basic platformer and right now I'm working on animations. The problem I'm having deals with the falling animation. For some reason my character will get stuck in an infinite loop between the standing animation and the jumping/falling animation when he is on the ground not moving. I'm not sure why it's happening and have tried a number of different changes to the event conditions to fix it, but none have worked.

    I think the issue could be related to the animation frames themselves, or to the collision detection, but I tried modifying them a few times to no avail. If anyone knows how this problem could be solved I would greatly appreciate it.

    Here is a link to the capx.


    if you want your player to animate while falling you must have 2 separate animations ,one for jumping and one for falling.otherwise you cant pick the correct one when the condision changes(jumping,falling).i simplified your was a big mess and conditions where overlapping each other and thus the chaotic behavior

  • Roccinio, thanks for the help, your solution worked perfectly.

    I do have one other question though which is somewhat related. I created an object with the Jump Thru Behavior and noticed some strangeness when using it. Essentially the character is able to stand on the vertical middle of the platform. You can see what I'm trying to say in this gif.

    <img src="" border="0" />

    I basically just want to know if this is how Jump Thru platforms are supposed to work, and if it can be changed so it doesn't do this. Let me know, and thanks again for the help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How's your collision box on the player character? Try making it square, it should work I think.

  • Okay, that fix worked. So from that fix am I right to assume that the Jump Thru platform was catching onto the various collision points on my character and they were causing it to think my character was still standing on top of it?

    In either case, thanks for the help

  • No problem, Construct 2 has a bad habit of making a weird collision box when you import any image onto it.

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