<img src="https://dl.dropboxusercontent.com/u/56104169/photo%20%286%29.JPG" border="0">
Hello all. I was working on my enemy characters and was curious about getting the type of knockback that you see in Street Fighter games. Basically, the character arcs through the air backwards, hits the ground, bounces, and then has a small arc till it lands.
For a while I thought there was some kind of math that would do it, and then I saw this Q&A with Street Fighter II's original designer, Akira Nish*tani. He said that they couldn't figure out the arc either so they set up an array with points that the character would travel.
His quote:
The knockback a character undergoes when hit by an attack in SF2. As much as we tried, we couldn't get it to go the way we wanted with acceleration and deceleration formulas, so we ended up just plotting it out pixel-by-pixel on graph paper. We plotted out lots of other things pixel-by-pixel, too. Although it was just being fussy about details.
(As many Mugen creators are aware of, the knockback for standing and crouching hitstuns in SF2 and many other Capcom games does not work from a typical velocity/acceleration system, but instead follows a preset array of position shifts.)
I would be happy with knowing how to do it that way or any other means. I'm pretty new to arrays, so I'm not sure how it would be implemented. I could always just animate the arc animations, especially since I plan on using Spriter for the enemies, but that doesn't seem like the most elegant solution.
Any help is appreciated.
-Ben