playMaker

Author Topic: AI Tutorial For Fighting Games  (Read 1920 times)

misterjuly

  • Sr. Member
  • ****
  • Posts: 357
AI Tutorial For Fighting Games
« on: April 08, 2022, 08:10:18 PM »
Hello,

I was wondering if there was a tutorial that someone could link me for creating a fighting game ai in playmaker (I do not understand traditional coding). I couldn't find anything on Youtube. If this does not exist, an explanation would suffice. Just keep in mind, that in my game, you use both the x and y axis (in other words, you're jumping a lot). Thanks!

John Bassi

misterjuly

  • Sr. Member
  • ****
  • Posts: 357
Re: AI Tutorial For Fighting Games
« Reply #1 on: April 11, 2022, 10:18:49 PM »
Bump.

misterjuly

  • Sr. Member
  • ****
  • Posts: 357
Re: AI Tutorial For Fighting Games
« Reply #2 on: April 15, 2022, 12:59:50 PM »
Anyone?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: AI Tutorial For Fighting Games
« Reply #3 on: April 17, 2022, 10:52:58 AM »
Hi.
Maybe its best to look to some unity tutorials and convert to PM.
If you find one you can ask here if you get stuck in some parts.
or on Discord

misterjuly

  • Sr. Member
  • ****
  • Posts: 357
Re: AI Tutorial For Fighting Games
« Reply #4 on: April 17, 2022, 12:38:48 PM »
Ok. Thanks. Would the correct route be have triggers on the human player and then have certain things happen when those triggers occur? Just brain storming at the moment. Thanks again for your help!

John Bassi

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: AI Tutorial For Fighting Games
« Reply #5 on: April 18, 2022, 09:22:25 AM »
Hi.
Probably have hit boxed for your body parts (player and enemy) For getting hit.

then have hit boxes for attacks (or maybe you can use the body parts as well).
and on attacks you can use events on animations to start/end a trigger checker.

then depending on what it hit you can do different things, which can become very complex depending on what you want.

misterjuly

  • Sr. Member
  • ****
  • Posts: 357
Re: AI Tutorial For Fighting Games
« Reply #6 on: April 18, 2022, 06:16:56 PM »
So, I'm thinking about this some more, and I'm realizing that simply having triggers might be a little difficult for my game. I have all sorts of objects that you have to touch in the air that appears and disappear to survive. I was thinking, would there be a way to transfer a human's movement as an AI. Like, record inputs as a human depending on the situation and use those inputs when certain things happen in the game. Almost like playing the game over and over and recording the best responses to certain situations and sending events based on that. Does that make sense? I'm just still thinking about the best way to do this. I might be over complicating it, but if anyone has any other suggestions I'm all ears. Thanks!

John Bassi

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: AI Tutorial For Fighting Games
« Reply #7 on: April 19, 2022, 10:08:55 AM »
Hi.
You probably want to look into AI Machine Learning (Games)

But its quite complex to do so.

Probably you can do something like

If player does a high kick :
Enemy checks distance (in range)
if in range do block/foot sweep/jump back/nothing by chance