Topic: Corner push problem
On the ground, the corner push operates at a normal value. However, when the opponent is hit in the air, the corner push operates at an abnormal value.
Universal Fighting Engine Forum We are no longer using the forum to answer questions due to bot attacks. Please use our discord instead: https://discord.gg/hGMZhF7 |
You are not logged in. Please login or register.
Universal Fighting Engine Forum → 2D Gameplay → Corner push problem
On the ground, the corner push operates at a normal value. However, when the opponent is hit in the air, the corner push operates at an abnormal value.
Source version is required for this one.
Under ControlsScript.cs (line 2675 & 2676) change the code from this:
myPhysicsScript.AddForce(
new FPVector(hit._pushForce.x + (opControlsScript.Physics.airTime * opInfo.physics._friction), 0, 0), -GetDirection(), true);
To this:
myPhysicsScript.AddForce(new FPVector(hit._pushForce.x, 0, 0), -GetDirection(), true);
Im not entirely sure why I coded it that way. I'll revise and refactor this code segment on the next update.
It seems the mechanism of the corner push works only when attacking an enemy 'on the wall', and when an enemy close to the wall gets stuck in the wall due to a hitback, the remaining hitback does not seem to be applied as a corner push.
I want to redefine the corner push mechanism separately, but I think I need information on the references to implement it. I'd like to refer to the information for coding such as boundaries (if the character touch the wall) and hitback variables.
Universal Fighting Engine Forum → 2D Gameplay → Corner push problem
Powered by PunBB, supported by Informer Technologies, Inc.