- Home /
Question by
MyUserNameIsWhat · Apr 18, 2020 at 05:12 AM ·
c#third-personteleportdashblink
How to teleport the player on which direction its facing?
Hello! good am/pm!, i am new at Unity, I am making an THIRD PERSON GAME and I wanna kindly ask on how to make the player teleport or short distance of teleportation on where the direction its facing when pressing a LeftShift key? it would be kindly if somebody or someone response or answer! :)
Comment
Answer by jmailloux11 · Apr 18, 2020 at 11:57 AM
if(input.getbuttondown("inputname")) { transform.translate(0, 0, distance); }
(use the project settings to create an input with the leftshift key)
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Confused as to why he only jumps while walking? 1 Answer
How do I make a dash attack while doing a top down 2d game 1 Answer
2D - Creating a basic teleport system 0 Answers