Sign in to follow this  

How could I solve edge-case death animation?

This topic is 662 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey,

there is a death animation and the final frame looks like this.

 

ow8y5tm.png

 

As you can see, it would look good on a straight surface. What could I do to make it universal and look good every time? Does anyone have some simple solutions apart from using something like bones?

Edited by zgintasz

Share this post


Link to post
Share on other sites

Perform a check for collision and slowly shift your sprite as you perform the fall animation, so that its center is at the center of the tile as opposed to the end.

That way, your body would fit entirely on that tile, and because this happens during the body "falling to death", and progressively, it wouldn't be apparent and clunky.

Share this post


Link to post
Share on other sites
You will probably need an additional animation where the character bends over the edge. You would have to detect when the animation would put them hanging over the edge, and play the other animation in that case. As Orymus suggested, you would have to shift the position of the animation slowly to line up correctly. However, there really isn't a correct answer in this case. It really comes down to how much time you want to put into polishing details like this. Overhanging death animations is fairly common in video games and players aren't going to care that much, but those little details can add up to really improve the experience.

Share this post


Link to post
Share on other sites

@Servant of the Lord, thanks, I had the same idea at first, but poor explanation for my artist, your drawings helped to get it :).

@Tom Sloper, thanks, I didn't find this category at first.

Share this post


Link to post
Share on other sites

How about you check if the whole bounding box of the sprite lands on collision geometry, if not, you let it fall through until it meets the next platform, same test, until you find a platform where the bounding box collides along its full length?

 

Don't think this would look off, given that is what a guy knocked out on a ledge would do anyway (fall down, that is), and given your platform design is not too rigid (for example if there is some kind of "pseudo depth" to it), it might not even look off even if the character falls down in a straight line

Share this post


Link to post
Share on other sites

This topic is 662 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this