This video helps you understand how to implement knockback step by step script enemy AI in unity.
►Hit the link to all Tutorials
Purpose of this tutorial is to understand how unity works and how to step by step code some behaviours like knockback, call special attack, call random attack, jump over obstackles in unity using animations and coroutines. if some subtitles are too fast i apology for that and please pause the video to read all sentence. This part will contain enemy ai in unity 2d from scratch (total 0). i hope that steps showed in this video will allow you first of all: understand C#, refactor scripts and rebuild them, scripts connection, good behaviours while scripting, trigger animations, trigger behaviours (AI)
►Contents of This Video:
00:00 - intro
00:22 - Recreating scene
03:40 - Main Camera - Perspective adventage
09:00 - Adding JUMP over obstackles in script
19:00 - Adding Special Attack in script with animation
30:00 - Refactor script to call Random Attack (special or normal)
39:00 - Creating Enemy Health script for random value
41:00 - Creating Health Bar for enemy UI
42:47 - Creating Health Bar Script with Gradient
51:00 - Adding explosion animation when fireball hits player
55:00 - Creating Knockbak and stun behaviour after being hit
1:00:01 - Full finctionality - Jump over obstacle, call random attack, being stunned, knockback and helath bar working
►Don't forget to Subscribe for NEW game dev videos
►I know many things may be done better not as good as Brackeys, CodeMonkeyUnity, SasquatchBgames but good as well: "if something is working cannot be bad" :)
cheers FireRaccoon Games
Comments