Simple Enemy AI for a Unity game - P2 Chase and Attack script

Опубликовано: 24 Июнь 2022
на канале: Sunny Valley Studio
11,809
117

In this video we will create an Enemy for a 2d unity game by reusing the same setup that we use for our player character.
To do this we will extract the code that gets the player input into a separate script. In part 2 we will create a simple Enemy AI script that will reuse the same character that we use for our Player to chase and attack the Player.

Learn How to make a Juicy 2D shooter in Unity: https://courses.sunnyvalleystudio.com/

Aiming at mouse:    • How to Aim a weapon at Mouse in Unity 2D  

New input system:    • How to use NEW Input System in Unity  

Assets used:
https://analogstudios.itch.io/

𝗛𝗮𝘃𝗲 𝗮𝗻𝘆 𝗾𝘂𝗲𝘀𝘁𝗶𝗼𝗻𝘀? 𝗝𝗼𝗶𝗻 𝘁𝗵𝗲 𝗱𝗶𝘀𝗰𝗼𝗿𝗱!
  / discord  

𝗣𝗟𝗘𝗔𝗦𝗘 support the channel:
  / sunnyvalleystudio  

00:00 Introduction
00:45 How to create an Enemy from the Player character
03:17 Extracting Player Input to a separate script
08:54 Using UnityEvents to send input to the character object

#unity2d #gamedev #sunnyvalleystudio


Смотрите видео Simple Enemy AI for a Unity game - P2 Chase and Attack script онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Sunny Valley Studio 24 Июнь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 11,809 раз и оно понравилось 117 людям.