Skip to content

Comments

Look for player state#6

Open
icefirewater wants to merge 3 commits intomainfrom
LookForPlayerState
Open

Look for player state#6
icefirewater wants to merge 3 commits intomainfrom
LookForPlayerState

Conversation

@icefirewater
Copy link
Owner

In this State Enemy will look for Player if the player comes in min agro range and then goes out of it, so Enemy will look for player in the direction Enemy was facing then opposite direction then turn again in and no Player detected it will move.

…tate Machine. So we can add different types of Enemies with different behaviour with different States (move, idle, attack, jump and so on).
…ine which detects the Player when he is in certain range and stops the Enemy from Move State to Player Detected State & when Player goes out of range of the Enemy Then Enemy changes State from Player Detected to Idle State without Flipping.
… charges towards the Player and if the Player goes out of range he waits for player then turn and again look for player and again turn and goes to Walk State.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant