Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

falcao Abs style battle issue

I have my enemy set up but I want him to attack me if I attack him first. I have it at the moment if u talk to him twice he will
get pissed off and attack you.

I want to have it so I can do both. if you attack him with a weapon he will defend himself. and also talk to him and he will start the fight.

Im using falcao liquid abs sytle fighting if that helps you guys :D thanks
 
I'm not entirely sure how the whole system works, but you could try creating a parallel process event that checks the enemy's HP. If the player has attacked him, I'm assuming his HP would drop. If he isn't injured just from an attack before speaking to him, you could do a slightly complicated system of using variables to record the player's position and using a parallel event to check if the player is in a location near the NPC and they press the attack button. o: I believe you can also record the player's direction with a variable. I'm not at my desktop to check this all, but those are some ideas for directions you could try taking to solve this. :3
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top