Pages 1
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 → Source Coding → Determination of the direction of movement (fighter 3d mode)
There is no direct way to add animations to move sideways, but you could look into the following code segments:
Physics.MoveZ (line 91):
if (UFE.config.inputOptions.forceDigitalInput) axisValue = axisValue < 0 ? -1 : 1;
controlScript.currentSubState = SubStates.MovingSideways;
Physics.ApplyForces (line 804):
else if (controlScript.currentSubState == SubStates.MovingSideways) {
if (moveSetScript.basicMoves.moveSideways.animMap[0].clip == null)
Debug.LogError("Move Sidewyas animation not found! Make sure you have it set on Character -> Basic Moves -> Move Sideways");
if (!moveSetScript.IsAnimationPlaying(moveSetScript.basicMoves.moveSideways.name))
{
moveSetScript.PlayBasicMove(moveSetScript.basicMoves.moveSideways);
}
}
You will essentially need to record the axisValue state and use it to change the moveSideways animation to a different animation slot located under the BasicMoveInfo instance.
I'll look into adding this extra animation slot in the future.
Universal Fighting Engine Forum → Source Coding → Determination of the direction of movement (fighter 3d mode)
Powered by PunBB, supported by Informer Technologies, Inc.