NPC AI Wall Detection

Hey everyone quick question. Im working on a 2d platformer. The problem is that i have these NPCs that are supposed to follow the main character. I want it so that when an NPC hits a wall It will attempt to jump over it. so far i have not been able to figure out how to describe a wall collision in game because on not if i can create an attribute based on directional collisions. I would appreciate any help.

Comments

  • SnapFireStudiosSnapFireStudios Member Posts: 1,603
    Well.. just have a rule in the Ai that says:

    When overlaps or collides with actor of type/tag Wall, then
    (Jump behaviors)

    Best of luck,
    - Thomas
Sign In or Register to comment.