Collision and Y Compare Problem

This forum is currently in read-only mode.
  • I'm using Deadeye's method from his Platform School to test whether the player is above an enemy when jumping on said enemy. However, for whatever reason, sometimes it doesn't think the player is above the enemy and subsequently kills the player. I've put together a .cap which demonstrates this. It seems quite random and you may have to do it a bunch of times to get yourself killed (it varies a lot), but it definitely keeps happening for me.

    Strangely enough, I was even able to consistently do it immediately after the preview started every first time I'd jump on the enemy, though now I can't seem to do that all the time anymore.

    One other unusual thing I just noticed while writing this: If I move horizontally just a tiny bit right as I'm about to collide with the enemy, it seems to kill me as well. I'm really wondering what's going on.

    http://www.box.net/shared/j7cajvryk1

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think its a frame rate issue, changing the collisions to box will help.

    Using overlapping at offset would be better.

    + Sprite: overlaps Sprite2 : offset (0,5)

    -> System: Add 1 to global variable 'Killed Enemy'

    -> Sprite: Set position to 500, 150

  • That seems to solve it. Thanks.

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