I am creating a traditional 2d-styled fighting game and want to make a mechanic that makes the enemy you hit rise and fall in a smooth arc motion, sort of like how the game “The Strongest Battlegrounds” does it with the “Uppercut” ability. The problem is I don’t know how to go about it or what to even use. I’d appreciate any help to push me in the right direction.
1 Like
Maybe have a Y and X Axis variable
have the Y variable follow a sine wave and the X variable stay at the same value until the player hits the ground
The Strongest battlegrounds makes some Raycast detection for that type of move.
As first, just use a Velocity that makes the player based on UpVector and LookVector, and then make some -UpVector detection with Raycast where it detects the ground on a certain distance.