[Unity plugin] Behavior Designer: Making enemy AI

Source: Internet
Author: User

A simple enemy AI:

When in the monitoring range, run to the player, and when in the attack range, attack the player; otherwise stay where you are. In the behavior tree, the expression is:




The variables and global variables of the current behavior tree are:




Making simple AI does not need to write code, but it is a bit cumbersome to configure. You can write custom nodes to compose complex AI, depending on your needs.

Behavior Designer is really a good choice when the game requires a lot of AI, because the custom nodes can be reused constantly.

[Unity plugin] Behavior Designer: Making enemy AI

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.