Alexa.Ki
(Alendromeda.ki)
May 1, 2022, 3:13pm
1
When I press move forward/right… character is directly reaching the maximum speed and starting to move in the speed of 700 as the maximum speed.
I want the character first start in speed 300 or 350 and then switch to the maximum speed.
Thank You for any help in advance.
1 Like
c0r37py
(c0r37py::)
May 1, 2022, 3:18pm
2
You can do it using movement velocity.
get velocity of movement and add a small value 10.0f and check if the output is greater then your walk speed, if yes set the sum to maxwalkspeed, and if not, set walk speed to max walk speed.
2 Likes
Alexa.Ki
(Alendromeda.ki)
May 1, 2022, 3:20pm
3
Thank You for help in my learning progress , I need a small example in code, very very appreciated )
1 Like
c0r37py
(c0r37py::)
May 1, 2022, 3:22pm
4
float mySpeedVelocity= GetCharacterMovement()->Velocity.Size() + 5.0f;
if (mySpeedVelocity <= WalkSpeed)
{
GetCharacterMovement()->MaxWalkSpeed = mySpeedVelocity;
}
else
{
GetCharacterMovement()->MaxWalkSpeed = MyWalkSpeed;
}
Your movement Logic.....
3 Likes
Alexa.Ki
(Alendromeda.ki)
May 1, 2022, 3:24pm
5
Thank You very very much for help. You just solved my Issue.
2 Likes