Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

How is AI Designed in Smash Bros

Discussion in 'Game Design' started by Devastadus, Jan 31, 2019.

  1. Devastadus


    Jan 27, 2015
    I am curious to how they do it. If you look at the new Super Smash bro's it has 76 different characters, 103 different Arenas, Tons of items. and just a heck a lot of variations. After playing it the AI seems very competent and can handle pretty much any arena/character/item combo.

    So how do they design this thing? Do they use some sort of machine learning? I see you can 'train' your amiibo, but the AI in smash is good even in the old ones before AI was really a thing. Behavior Tree just seems infeasible, there would be way to many conditions and the AI doesn't seem to follow really any patterns. How are they achieving this?
  2. Murgilod


    Nov 12, 2013
    Why? Like, I don't think you understand that behaviour trees can deal with broad strokes as well as specific situations.
    SparrowsNest, Ryiah and BlankDeed like this.
  3. JoeStrout


    Jan 14, 2011
    AI for a fighting game isn't hard. The traditional approach is just a bunch of heuristics — pick an opponent; if he's too far away, use a ranged attack if you can, else move closer; if the distance is right for a close attack, do it; if being attacked, consider blocking, etc.
    BrandyStarbrite likes this.
  4. BrandyStarbrite


    Aug 4, 2013
    For the classic fighting games like Street Fighter 2, Hyper Fighting etc
    and Mortal Kombat 2, or any of the fighting games, released during the
    early to mid late 90's.........

    What they did, was make it, where whenever the player did a move
    command, for like eg. Ryu's Ha do ken or Sub zeros Freeze magic etc.
    A few frames before the move you did, would actually be seen onscreen,
    the AI opponent was programmed, to immediately react to it.
    Eg. Jump over it, block etc.

    So in other words, whatever move you performed, or whatever button
    you pressed, the AI was programmed to react to it. That's why alot of the
    classic fighting games, were so hard to beat. Because the cpu would
    read your input command, then immediately counter attack, before
    your move came out.

    Fighting against cpu Ryu in Street Fighter 2, or fighting the cpu in MK2,
    are some really good examples of this. :p

    It's possible, that smash uses a combination, of this technique and a few others.
    But knowing nintendo, they probably did some special programming tricks, to
    achieve this.
    Last edited: Feb 2, 2019
    Braineeee likes this.
  5. Ryiah


    Oct 11, 2012
    What's hard is testing it when you don't have the skills to keep up with it. :p
    Braineeee, SparrowsNest and JoeStrout like this.
  6. RockoDyne


    Apr 10, 2014
    Honestly, it could be as simple as a random, weighted table for behaviors. Especially considering World of Light and all of the variety in it, it probably wasn't more complicated to configure than a wall of sliders to define preferences.

    The behaviors themselves are probably more complicated, but those probably aren't much more than steering behaviors.
  7. SparrowsNest


    Apr 6, 2017

    A good behavior tree can deal with an infinite amount of variations(arena, opponents, weapons) and come up with a different solution for each time it encounters a particular situation.
  8. Braineeee


    Nov 9, 2014
    Yes. But efficiency. Also complexity management.