2D Character Movement Script for Unity (Keyboard + Gamepad Support)
A downloadable tool
A simple and efficient 2D character movement system for Unity, designed for both keyboard (WASD / Arrow keys) and gamepad controls.
This script uses Rigidbody2D physics for smooth, responsive motion, and integrates seamlessly with your Animator using Blend Trees.
Perfect for top-down games, 2D RPGs, or adventure projects, this setup gives you full control over your player movement in just a few minutes.
Setup Requirements
Rigidbody2D
-
Body Type: Dynamic
-
Mass, Linear Drag, Angular Drag, Gravity Scale: very low (0 or near 0)
-
Constraint: Freeze Rotation Z (to prevent unwanted spinning)
Animator
-
Assign a Controller called
PlayerController -
Create two Blend Trees:
-
IdleBT: contains all idle animations (up, down, left, right) -
Move State: contains all movement animations for the same directions
-
Box Collider 2D
-
Add a Box Collider 2D for collision detection and physics interactions
Features
✅ Supports keyboard and gamepad controls
✅ Smooth and natural movement using Unity’s physics
✅ Animator ready (works with Blend Trees)
✅ Easy to integrate into any 2D project
✅ Fully commented and beginner-friendly
Purchase
In order to download this tool you must purchase it at or above the minimum price of $2.20 USD. You will get access to the following files:

Leave a comment
Log in with itch.io to leave a comment.