On Collision, 8-Dir Jitters Between Moving and Not

For questions about using Classic.

Post » Tue Jan 03, 2012 8:47 am


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!wscedwin2012-01-03 08:50:35
Posts: 12
Reputation: 524

Post » Tue Jan 03, 2012 5:04 pm

I tried something but it didnt change anything.
Sorry i cant help
Posts: 28
Reputation: 1,152

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests