Skip to content

Comments

Player fight back#11

Open
icefirewater wants to merge 5 commits intomainfrom
PlayerFightBack
Open

Player fight back#11
icefirewater wants to merge 5 commits intomainfrom
PlayerFightBack

Conversation

@icefirewater
Copy link
Owner

Here Player can Fight Back with the Enemy and give&take damage and get killed or kill Enemy.

…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