blueprint

Enemy AI Movement

  • Exposure: public
  • UE Version: 5.0

Seth

December 29, 2022, 4:08 pm

Click the button above, it will automatically copy blueprint in your clipboard. Then in Unreal Engine blueprint editor, paste it with ctrl + v
Versions
January 18, 2023
  1. Cleaned up blueprint and added comments

January 12, 2023
  1. -Replaced 'Height Adjuster' by 'Line Check' event. This after realising Line Check better matches the criteria.
    -'Line Check' Event improved compared to last iteration. It now switches between 3 different lines at random for each enemy on a randomized interval.
    - Added random direction when enemy spawns

    Minor improvements:
    -Added Colour for better visual
    -Removed Select nodes for sprites. (This is instead replaced by spawning a new actor. See Dead Enemy BP)
    - Replaced Set Time on Event for Set Time On Function Name. To avoid spaghetti code.
    -Cleaned up the blueprint
    - Added flapping sound effect.
    - Added comments

December 29, 2022
  1. Changes flap animation, if hit by the player. And it registered as 'Dead'.

  2. - Added Flap Animation
    - Removed 'Line Check', as it felt too static and hard-coded
    - Added 'Height Adjuster' as replacement of 'Line Check'. This checks on a random internal if the player is higher or lower, and adjusts how high it flaps, based on that height.

    - Added 'Height Change Timer' variable, to easier decide when to perform a height check
    - Added Launch variable.

  3. Added 'Line Check'

    Gives 2 borders in which the AI has to stay between. If its underneath it, the bird will fly. If its not it will descend.

  4. Added a 'Ground Check'.

    Once the bird nears lava, it will automatically flap more to avoid it a bit more.

  5. Added a Timer By Event, which loops the Flap event based on a variable. To make it more efficient.

  6. Added an event tick, which executes the walk event, and the flap event based on a random interval. This recreates the bird flying.

  7. First commit

    See