Player Movement
- Keshav Batra
- Dec 8, 2022
- 1 min read
Now that I've gotten the jumping and the platforms taken care of, I've decided that I'm going to take care of the movement from left to right. It was really easy to implement, all I had to do was add a float and use a transform. The only thing left is to have it move slower.
void Update()
{
float horizontalInput=Input.GetAxis("Horizontal");
Player.transform.Translate(horizontalInput,0,0);
}
Comments