Hi, so I was thinking about making a fighting game... Would love for it to have AI/vs computer mode, but for the life of me I have absolutely no clue how to approach that. Is it possible? Has anything similar been done? Thanks for your input!
https://www.scirra.com/tutorials/1329/h ... onstruct-2
Develop games in your browser. Powerful, performant & highly capable.
This a very complex problem with often times very complex solutions, though there's nothing technically stopping you from implementing such a system in C2. It would probably be of some benefit to look at tutorials for video game AI in general -- not specifically for C2, as the important concepts are separate from implementation.
A simple system might keep track of the player's recent moves and make decisions based on that. More complex systems may use an artificial neural network to learn and adapt.
Do a search on "State Machine". I saw something on it here. I don't know how good the article is but that's your answer.