SDK Sleekhell V8


Hello everyone! Welcome to a new devlog. Today, I'll be showing you how I've implemented two essential AI movement behaviors: Seek and Flee. These are commonly used to make NPCs dynamically react in a game world."

  • Seek: The NPC moves toward a target, whether it's a player or a specific point on the map.
  • Flee: It's the opposite, where the NPC runs away from a threat, moving as quickly as possible."

    Seek takes the entity's position and calculates the desired velocity so that the NPC heads toward the target. We also adjust the speed to be proportional to the NPC's current velocity."

    For Flee, the calculation is almost the same but in the opposite direction, as the entity tries to escape the target, which would usually be a threat."

    This is just the beginning. Seek and Flee behaviors are essential components for creating NPCs that react realistically in a game world. My next step will be to add more behaviors like Wander and combine them to create more complex and dynamic AI."
  • Files

    WebGL (12).zip 24 MB
    8 days ago

    Get SDK_Unity_Demo

    Leave a comment

    Log in with itch.io to leave a comment.