I'm trying to implement a ground pound/butt stomp move that allows the player to effectively slam into the ground regardless of what height they've jumped up to or if they are are already falling from a jump. Here's an example from one of the New Super Mario Bros. Games: -
I've tried a couple of different solutions where if the player is jumping or falling and hits the down key, gravity is temporarily increased but this doesn't really work as intended (possibly because the slightly pause is needed when the move is triggered to heighten the impact). I feel like there might be a better solution; does anyone have any ideas? I'm currently using the platform behaviour with double-jump enabled if that makes any difference!