attack timing

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
attack timing
by on (#176485)
When doing impact freeze does it look/play better if I freeze everything on-screen, or just the player and the enemy getting hit? If I'm doing just the player and enemy, what happens if an enemy comes in hit range during a freeze? Should it restart the freeze timer for the player?

I'm guessing I should also have the attack on a specific key frame (or range of frames) so it looks timed better.
Re: attack timing
by on (#176487)
Watch a 2-on-2 Super Smash Bros. Melee match in slow motion to see best practices in handling hitstun.
Re: attack timing
by on (#176489)
Freeze just the things involved in the hit. I've always thought the idea behind hitstop is to emphasize resistance. Imagine swinging a knife. Now imagine swinging a knife through a small branch. Even if the knife is sharp enough to cut through the branch with just a swing, because the branch is solid the knife will slow down as it moves through it thanks to some resistance. tl;dr: It shouldn't affect anything else on screen but that's the easier thing to do. For a single player game, it doesn't even make too much difference.

To avoid things getting put repeatedly in hitstop (a player in between two enemies that hurt with touch idling or whatever) some games just have a maximum number of frames an object can be in hitstop before they ignore things trying to add more.

Hitstop is usually something very small like <6 frames, so you don't need to worry about the attack happening on a specific key frame. Any point during the knife swing hitbox will apply it to that frame of animation, and it should look fine. Here's a thorough article about Smash Bros. hitstop: http://sourcegaming.info/2015/11/11/tho ... vol-490-1/