hi im noob

plz help me!

i try UT2004 dodge jump in unity my create a new title game

but

this is that code

float dashspeed = 40.0f;

if(Input.GetKey(KeyCode.LeftShift))
{
transform.translate(0, 0, Dashspeed);
}

yes look like teleport, is not way

well i want Dodge from Unrealtournament 2004

people plz help the code

totally real noob SOS

Hi, welcome to the forum!

The problem with that code is that it applies the full movement each frame. You need to use code like the following to slow it down to the right speed (although 40 units per second is still very fast):-

transform.translate(0, 0, Dashspeed * Time.deltaTime);