How do I fix my collision issue

  • I have no idea how to fix this collision issue I'm having.

    Player hits collision area and stops, which is correct. But if i move again it goes through. Any ideas would be appreciated.

    Capx

  • From the manual:

    On collision with another object

    Triggered upon the first time any instance starts overlapping any instance of another object. The collision polygons are taken in to account if set, as well as the object's size and rotation.

    'Is overlapping' might be better, but even then it doesn't prevent movement. You may have to add some extra logic to bump the player back, or use some of the available behaviours for blocking movement.

  • How about this?

    <img src="http://dl.dropbox.com/u/1685424/Capture.JPG" border="0" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 'Is overlapping' might be better, but even then it doesn't prevent movement. You may have to add some extra logic to bump the player back, or use some of the available behaviours for blocking movement.

    yeah that's the problem it seems, it works out well at the collision point but thereafter it just goes through - i have tried is overlapping with similar or non functioning results.

    How about this?

    <img src="http://dl.dropbox.com/u/1685424/Capture.JPG" border="0" />

    Spongehammer, I'll try that. So what that will do is check the direction of the collision / overlap and bump it back 1 pixel 180 degrees?

    That could very well work. Such a simple solution actually.

    I feel dumb.

    I'll try it out and report back.

    Thanks for the comments guys.

  • Works well.

    Thanks spongehammer!

  • Great :-) no problem.

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