How to create a patrolling behaviour in Unity




In this quick tutorial, I will show you how you can make a patrolling enemy behaviour in Unity that automatically detects the end of the platform and if it reaches it will change direction. So a perfect behaviour for an enemy in your platformer game!

OverlapCircle documentation:
https://docs.unity3d.com/ScriptReference/Physics2D.OverlapCircle.html

Assets used:
https://assetstore.unity.com/packages/2d/characters/cute-2d-girl-wizard-155796
https://assetstore.unity.com/packages/vfx/particles/fantasy-effect-50310
https://maaot.itch.io/mossy-cavern

#unitytutorial #gamedevwithmark #shorts

Voir sur youtube

KA2Studio
Logo
Compare items
  • Total (0)
Compare
0