how to make character move a certain amount when when key is pressed

how do i make somthing move smoothly by pressing a key every time moving the same amount at the same speed i thought animations would work but it just loops it every time i press the button.

1 Answer

1

try transform.translate or transform.position depending on what looks more to the effect you want.

dont mulitply Time.deltaTime by ten, simple.

–