Menu
Login
Language
DE EN FR ES IT CZ
Back

Character collision

  • #1, by dos4gw Wednesday, 09. September 2015, 22:59 11 years ago Quote
    I'm using the chase command heavily in my game. Is there a way to prevent characters from passing through each other?

    Newbie

    69 Posts

  • #2, by afrlme Wednesday, 09. September 2015, 23:43 11 years ago Quote
    Try setting a larger radius. The closer the characters are the more likely that they may end up passing through each other.

    Technically you could also program basic character collision detection by querying if active characters radius is inside of another characters radius. It requires Lua script mind & determining what the character should do if it overlaps another characters radius is a little complicated as you have to consider direction & destination of both characters. Plus the characters are 2D.

    Imperator

    7290 Posts