Skip to content

GamedevBranislav/Enemy_Entity_Repo

Repository files navigation

Enemy from my 2D platformer with State Machine. Entity have "Animator" "Rigidbody2D" and "EntityFX" components which Enemy Inheritence. Enemy "Skeleton" in this case have 4 Stances Idle,Move,Battle,Attack. He is moving and when he reach corner play Idle animation and then flip and move to the other direction. When player is less distance then "attackDistance" which is 2f, then Enemy will change state to AttackState, if he cannot reach player or player left from his sight then after 12sec. he will come back to MoveState.

EnemySkeleton Enemy_Skeleton

About

Inheritance from Entity & State_Machines

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages