On Collision, 8-Dir Jitters Between Moving and Not

This forum is currently in read-only mode.
  • Hello!

    I'm kind of floored that there isn't a topic on this yet! Maybe I just couldn't find it? Anyway:

    I've run into a problem where, while controlling a sprite with 8-dir behavior, if I collide with a solid area and I continue to move (push) against it, the sprite's behavior will rapidly alternate between moving and not moving.

    Note that I'm not talking about its actual movement in space--that part is fine. I'm talking about the sprite's states of "moving"(which satisfies "is moving" in the event sheet) and "not moving".

    At first, I figured that's just how that particular behavior works (kind of crappy, but what are you going to do?) and was prepared to either come up with my own custom movement or devise a workaround. Then I noticed that this weird jittering actually doesn't happen with the platform behavior. If a platform sprite is controlled to push against solid space, it maintains its "not walking" state.

    Why do the two behaviors act so differently? Aren't they, barring a few cosmetic details, fundamentally the same (i.e.: based on the same collision handling)? Am I just being dumb and doing something horribly wrong?

    Here's a .cap:


    I'd really appreciate any help or insight!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I tried something but it didnt change anything.

    Sorry i cant help <img src="smileys/smiley13.gif" border="0" align="middle" />

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