youknowitslark

A Unity 2D top-down controller with 8-directional movement and persistent directional idle animations

18
1
89% credibility
Found May 17, 2026 at 18 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
C#
AI Summary

This is a free character controller for Unity game developers who want smooth, professional-feeling 8-directional movement in their 2D top-down games. The character can walk in any direction—including diagonals—and remembers which way it was facing when it stops, playing the right idle animation. It includes little dust particles when moving and handles sprite layering automatically. It's a focused, single-purpose tool that does one thing well.

How It Works

1
🎮 You're building a 2D game

You've started creating a top-down adventure game and need your character to move around naturally.

2
🔍 You find the perfect movement system

Someone online shares a controller that handles 8-directional movement with smooth animations.

3
📦 You open it in your game engine

You load the project and see a tiny character waiting for you in a test scene, ready to move.

4
▶️ You press play

The game starts and your character stands there, waiting for your commands.

5
You try moving in different directions
↗️
Moving diagonally

You press two keys at once and watch the character glide smoothly in any of the 8 directions.

🧍
Stopping mid-movement

When you let go, the character stops but keeps facing the direction you were moving.

Your character moves beautifully

Walking, stopping, and turning feels natural and polished, with dust particles adding life to every step.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 18 to 18 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is topdown-8dir-controller?

A Unity 2D top-down character controller written in C# that handles 8-directional movement using Rigidbody2D physics. The controller remembers the last movement direction and maintains directional idle animations even when the player stops moving. It also includes dust particle effects and automatic sprite sorting based on pivot point.

Why is it gaining traction?

The directional idle animation memory is the standout feature. Many basic controllers reset to a default facing direction when stopped, but this one persists the last movement vector. The physics-based approach with normalized diagonal movement ensures consistent speed in all directions. The minimal scope keeps it easy to understand and modify.

Who should use this?

Indie game developers building 2D top-down games in Unity who need a foundation for character movement. This is particularly useful for prototyping top-down shooters, adventure games, or RPGs. Beginners learning Unity game development might also find the clean implementation worth studying as a reference.

Verdict

With 18 stars and no test coverage mentioned, this is a very early-stage personal project. The credibility score of approximately 0.9% reflects limited community validation. The code appears well-structured and the feature set delivers exactly what it promises. For rapid prototyping or learning purposes, this is worth evaluating. For production projects requiring community support and maintenance guarantees, you may want something more established.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.