nesdev.com
http://forums.nesdev.com/

attack timing
http://forums.nesdev.com/viewtopic.php?f=21&t=14600
Page 1 of 1

Author:  psycopathicteen [ Mon Aug 01, 2016 10:28 am ]
Post subject:  attack timing

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.

Author:  tepples [ Mon Aug 01, 2016 10:45 am ]
Post subject:  Re: attack timing

Watch a 2-on-2 Super Smash Bros. Melee match in slow motion to see best practices in handling hitstun.

Author:  Kasumi [ Mon Aug 01, 2016 10:49 am ]
Post subject:  Re: attack timing

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/

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/