Skip to content

Comments

Attacking the player melee attack#10

Open
icefirewater wants to merge 4 commits intomainfrom
AttackingThePlayer-MeleeAttack
Open

Attacking the player melee attack#10
icefirewater wants to merge 4 commits intomainfrom
AttackingThePlayer-MeleeAttack

Conversation

@icefirewater
Copy link
Owner

Here Enemy Attacks the Player with Melee Attack if the Player is in MeleeAttack Range does the Damage to the Player.

…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.
…nge state to MeleeAttack state from Charge, PlayerDetected state and then transition from MeleeAttack state to LookForPlayer State, Charge State based on the condition.
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