artificial intelligence

aa233aa233 Member Posts: 8
edited November -1 in Working with GS (Mac)
I'm making a game which involves a user going one on one with the computer. Is it possible to give the computer attributes that would allow it to keep up with the one player but still have the possibility of being beaten. A better way of explaining this would be in like a pong styled game where one player goes against the COM. The COM volleys with the player but eventually loses as the ball gets faster. If anyone knows how to do this it would be fantastic. Much appreciated.

Comments

  • haim96haim96 Member Posts: 87
    the best AI you can get is random numbers.
    in the case of the pong you can random the speed of the paddle.
    in case of one on one, you can random which "ability" the COM will use against you player etc...

    hope that help...
  • quantumsheepquantumsheep Member Posts: 8,188

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • haim96haim96 Member Posts: 87
    @tshirtbooth thanks!
    @quantumsheep my avatar is not available... sorry! :)
  • AfterBurnettAfterBurnett Member Posts: 3,474
    So would this "random number" system work for a Streetfighter 2 styled game? And would it work with the computer's defense as well? For example, when being attacked, it either attacks back or blocks. That's what I'm working on and we all know how TERRIBLE fighting games can be!
Sign In or Register to comment.