r/Unity2D • • 3h ago

Question/Help How to turn each pixel on a colour map to a tile on a tile map?

1 Upvotes

I followed this tutorial: https://www.youtube.com/watch?v=RDQK1_SWFuc&list=PLFt_AvWsXl0eBW2EiBtl_sxmDtSgZBxB3&index=4 I just finished ep4 and the next episode goes into generating a mesh from the perlin noise. I want to make a 2d game and have a tileset already set up. What I want to know is how to transfer each pixel on the colour map to a corresponding tile in the tileset and then draw that on the tile map.

I've already defined what tile should be used for each terrain type.

public struct TerrainType
{
    public string name;
    public float height;
    public Color colour;
    public RuleTile tile;
}

How do I then use each pixel on the colour map to place it's tile on a tilemap? This is the first time I've none proc gen so I have absolutely no idea: talk to me like I'm a complete beginner.


r/Unity2D • • 1d ago

Paid Asset/Tool 50 Animated Foliage Tiles โ€” Pixel Art, 4 Seasons, for Unity 2D

Thumbnail
gallery
63 Upvotes

Hey everyone! I just finished a pack of 50 animated foliage tiles for 2D games โ€” 50 plant types in 5 perspectives, across 4 seasons (spring, summer, autumn, winter), in 16x16 and 32x32, with 8-frame animation loops. It also includes an Aseprite extension so you can generate the tiles yourself.

It's $10, and I made it with Unity 2D in mind, so the tiles are ready to drop into your project.

You can check it out here: https://alenia-studios.itch.io/50-animated-foliage-tiles

Happy to hear what you think!


r/Unity2D • • 16h ago

Question/Help How to stop clipping?

1 Upvotes

I realize this is probably a pretty simple question but I'm new can't find the answer anywhere. My characters keep clipping into each other when turning around. I can't figure out how to add the video of it but this is the code I'm using: transform.localScale = new Vector2(Mathf.Sign(movement2.x), 1);


r/Unity2D • • 1d ago

Showcase Would you go for this star or skip it? โญ I'm making a small 2D platformer

Post image
10 Upvotes

I'm working on Jumplife, a short 2D platformer releasing on Steam soon!

Steam: https://store.steampowered.com/app/2914000/

This is one of the optional star collecting challenges. Some stars are straightforward, while others require a little more precision.

Would you bother collecting this one?


r/Unity2D • • 18h ago

Question/Help Can someone help me?

Thumbnail
gallery
0 Upvotes

I am trying to create a timing-based precision game that includes scoring and misses, but when I press the spacebar within the "danger zone," the game registers it as a successful hit on the target.


r/Unity2D • • 1d ago

Paid Asset/Tool NavMesh2D Pro [RELEASED] -50% OFF first week!

Post image
0 Upvotes

Hi everybody! I'm glad to introduce NavMesh2D Pro, a complete suite that provides all you need to let thousands of characters find paths, move there avoiding obstacles, detect other characters that are in sight...

Summary video: https://youtu.be/ydEx35aRie0

It was made for 2D from the ground up. No rotated 3D navmesh, no grids, no workarounds. It builds the walkable area from the 2D colliders you already have and keeps it up to date while you build your level.

๐Ÿš€ EASY TO START, EASY TO LEARN

  • Up and running in minutes. An installation window greets you on import, and the quick-start guide gets your first character moving in less than five minutes.
  • Uses what you already have. Box, polygon, circle, capsule, composite and tilemap colliders all work. You can also draw walkable areas by hand right in the Scene view.
  • Takes care of itself. A new navmesh is ready the moment you create it, and it rebuilds itself as you shape it, so you see the result while you work.
  • One line to move a character. Characters find the right navmesh on their own. You only tell them where to go.
  • Learn by playing. 11 ready-to-run demo scenes, opened from a built-in demo browser, show every feature in action, with their scripts as examples.
  • Clearly documented. A complete manual in plain language, tooltips in the inspector, and fully documented code.

๐Ÿคธ WHAT YOU CAN BUILD WITH IT

  • Natural paths. Routes hug corners and look like a person would walk them: no zig-zags, no staircase steps.
  • Movement with personality. Speed, acceleration, braking and turning, set per type of character.
  • Crowds. Many characters share the same space and step aside for each other instead of walking through one another. Important characters can be given right of way.
  • Characters of every size. A rat and an ogre each get only the routes they actually fit through, with no extra work per level.
  • Jumps, ladders and teleports. Connect separate areas with links for gaps, ladders, elevators or portals, and play your own animation while crossing.
  • Moving platforms. Walkable areas can move, and the characters on them move along.
  • Doors. Gates close a passage while the game runs (blocking routes, movement and even sight) and reopen instantly.
  • Waiting at a closed door. When the way is blocked, characters get as close as they can and carry on by themselves once it opens.
  • Terrain preferences. Make mud, water or danger zones costlier to cross, so characters go around when it's worth it.
  • A changing world. Push a crate or drop a barricade and routes update on the fly.
  • Levels in pieces. Levels built from several navmeshes, even from additively loaded scenes, join up into one world.

๐Ÿงฑ BUILDING BLOCKS FOR YOUR GAME AI

Your game decides what a character wants to do. These tools give it the information to decide well.

  • Vision. Ask who can see whom, with range and view cones. Choose whether walls block the view, or only obstacles do.
  • Run away or close in. Find good spots to flee to, or to approach a target from.
  • Wander. Pick random places a character can actually reach.
  • Ask about the world. Who is nearby, where the nearest walkable ground is, where a line of sight hits a wall.

๐Ÿ”ฉ TWEAK EVERYTHING WHILE THE GAME RUNS

Game designers can tune almost every setting in Play mode and see the effect immediately: speeds, acceleration, turning, crowd behaviour, terrain costs, doors and obstacles. No restarting, no waiting for a rebuild, no waiting for a programmer. Change a single character, or a whole type of character at once, and keep iterating until it feels right.

๐ŸŒก SEE WHAT IS HAPPENING

  • Visual debugging in the Scene view. Show the walkable areas, the routes between them, how much each connection costs, what blocks line of sight, and each character's path and movement.
  • Always-visible state. Links, gates and obstacles show their shape and state in the Scene view at all times, so a closed door or a misplaced link is obvious at a glance.
  • Try features without coding. Ready-made test components let you try movement, vision, fleeing, approaching and wandering on any character.
  • Live readouts. A floating panel shows a character's speed, velocity, heading and avoidance values as they change.
  • Built-in profiler. An on-screen overlay shows how long each part of the system takes per frame, so you know exactly where the time goes.

Requires Unity 6.0 or newer.


r/Unity2D • • 1d ago

Game announcement Made a 2d co-op platformer for Android

Thumbnail
gallery
0 Upvotes

Hi Guys,

Our 3-person team has been working on Marbles Park, a 2โ€“4 player online co-op physics platformer for Android. Since mobile co-op lacks the couch-banter of sitting next to your friends, we wanted players to be able to roast each other mid-jump using their own cursed camera-roll photos.

In Unity 2D, we wired up a native Android gallery picker that pulls the selected image, downscales/compresses it on the fly so it doesn't spike memory or bandwidth, converts it into a Texture 2d / Sprite, and syncs the byte array across the room so all 4 players see the sticker pop up over your marble in real time.

Happy to share how we handled texture compression or 2D physics sync across 4 clients if anyone is building something similar in Unity!


r/Unity2D • • 1d ago

Paid Asset/Tool 120+ Animated for Unity โ€” Survival 2D & Platformer 2D & Farm2D

Thumbnail
gallery
1 Upvotes

Hey everyone! ๐Ÿ‘‹

I've been working on a series of 2D animation template packs for Unity, focused on making character setup easier for indie developers. Here's what's available right now:

๐ŸŒฑ 2D Survival Character Animation Template

A collection of common survival-game character animations,.

2D Survival Character Animation Template by xuanergame

๐ŸŽฎ 2D Platformer Character Animation Template

A platformer-focused set covering movement, jumping, falling, combat, and other common actions.

2D Platformer Character Animation Template by xuanergame

๐Ÿšœ 2D Farm Character Animation Template

A farm-themed animation and asset collection tailored for farming/life-sim projects โ€” perfect for tilling, watering, harvesting, and more.

2D Farm Character Animation Template by xuanergame

All templates are designed specifically with Unity in mind: modular structure, pre-configured hand attachment points, and ready-to-use animation files โ€” so you don't have to manually slice spritesheets or set everything up from scratch. :D

I'm continuing to expand all packs based on what developers actually need. If you're working on a Unity 2D project, I'd love to hear what animations or features you'd like to see added!


r/Unity2D • • 1d ago

Feedback needed I completely redrew my 2D game's battlefield. Does the new version look better?

Thumbnail
gallery
15 Upvotes

It's a hand drawn necromancer game called Necro Heist where humans and orcs fight, and you turn the dead into skeleton that steal their loot.

Before I update the Steam screenshots, I'd love some feedback on the new visuals. Anything you'd change?


r/Unity2D • • 1d ago

Game announcement We ported our 2009 Flash game VelocityX to Unity, and itโ€™s now free to play in the browser

Post image
1 Upvotes

Back in 2009 we made VelocityX in Flash as a tiny game that lived in a browser toolbar. Flash is long gone, so we ported it to Unity (2D) and brought it back. Itโ€™s now playable for free on itch.io.

Itโ€™s a one-button side-scrolling endless runner.

Play it here: https://oh-gosh.itch.io/velocity-x


r/Unity2D • • 1d ago

Question/Help Why are some health bar dividers thicker than others in Game view? (Even though all values are round integers

Post image
1 Upvotes

Hi everyone,

I'm building a segmented health bar using a HorizontalLayoutGroup. Even though my container width (200), spacing (10), padding (10), and divider widths are all whole numbers, some specific dividers (like the 3rd from the left and 3rd from the right) look noticeably thicker than the rest in the Game view.

Here is the weird part: they look completely uniform and equal in the Scene view.

I've already tried rounding the values in code and toggling Pixel Perfect, but the issue persists in the Game view. Does anyone know why this happens and how to fix it?


r/Unity2D • • 1d ago

Showcase I got tired of re-exporting sprites every time a designer changed a corner radius, so I built a shader-based alternative

1 Upvotes

Every UI I've built in Unity hits the same problem. A designer changes the corner radius or border width, and I'm re-exporting sprites, re-slicing 9-slice borders, and fighting blurry edges at different resolutions.

I ended up building a small tool that draws UI shapes with shaders instead of pre-made textures. You change the settings in the Inspector and see the result immediately:

  • 19 shape types: rounded and chamfered rectangles, circle, ellipse, heart, star (3โ€“12 points), ring, pie, arc, and every regular polygon from triangle to dodecagon
  • Per-corner radius (or uniform, or "corner pair" mode for things like tabs and headers where only some corners are rounded)
  • Borders/outlines, adjustable edge softness, and linear, radial and corner-based gradients
  • Rings, pies and progress arcs with adjustable sweep, thickness, start angle and rounded end caps

Because the geometry is generated mathematically instead of stretching a bitmap, edges stay sharp at any size or resolution, and you can change values at runtime without creating a new sprite.

A few things I learned along the way:

  • Shader-based shapes cut out the "one sprite per radius" problem, but you have to be careful about batching. Elements with the same material batch together, while gradients and other material differences need separate materials. I added an Inspector readout showing which elements can batch, so you aren't guessing.
  • Auto Round matters more than I expected. Circles and ellipses look wrong the moment a RectTransform gets stretched, so the tool keeps them visually consistent as the size changes.
  • Rotation and clipping: every shape stays inside its element at any rotation, so corners never get cut off. That was surprisingly annoying to get right.
  • It works with Mask and Rect Mask 2D, and you can convert existing UI Images in place with a right-click, so you don't have to rebuild your UI to try it.

How are you all doing rounded or dynamic UI right now: sprites, SDF shaders, UI Toolkit, something else? And what would make you switch?


r/Unity2D • • 1d ago

Hiring/Looking for work [For Hire] SATURA GAMES| UNITY GAME DEVELOPMENT & CREATIVE SERVICES

0 Upvotes

๐ŸŽฎ SATURA GAMES | UNITY GAME DEVELOPMENT & CREATIVE SERVICES

Unity Game Developers | 2D & 3D Artists | UI/UX Designers | Backend Developers

๐Ÿš€ Available for Freelance, Remote & Contract-Based Projects!

We are Satura Games, a passionate game development team specializing in Unity 2D & 3D Game Development. Alongside our core expertise in Unity, we have a talented team capable of supporting various aspects of game development, from creative design to technical implementation.

๐ŸŽฏ Our Expertise & Services

Unity 2D & 3D Game Development

Game Mechanics & Prototyping

UI/UX Design & Implementation

2D Illustration & Concept Art

3D Modeling & Environment Design

Backend Development & API Integration

Game Optimization & Bug Fixing

๐Ÿค Let's Collaborate!

We are open to freelance projects, remote collaborations, contract work, and long-term partnerships.

Portfolio: Available on request.

๐Ÿ“ฉ Feel free to DM us to discuss your project and collaboration opportunities.

SATURA GAMES โ€” Turning Ideas Into Interactive Experiences. โค๏ธ๐ŸŽฎ


r/Unity2D • • 2d ago

Showcase An old chapel and a dungeon bellow on my hand drawn metroidvania "Endless Night Sonata" :)

Post image
6 Upvotes

r/Unity2D • • 2d ago

Feedback needed Every shape in my 2D slingshot game is drawn by one Shader Graph (Unity 6, URP)

1 Upvotes

Oddball is a 2D slingshot game: pull back to aim, let go, and every ball you hit gives you a launch back, so you try never to touch the floor. It runs in the browser (WebGL) on desktop and phone.

Some of the Unity side, in case it's useful:

- One Shader Graph draws every shape. Balls, rings, spikes, the bosses, dashed lines and glows are all one Sprite Unlit graph that draws the shape from the UVs, anti-aliased to 1 px at any size. A MaterialPropertyBlock on each renderer picks the shape and its colour from a palette ScriptableObject, so the arena's shapes need no textures.

- The aim preview matches the physics. The dotted arc steps through time the way Box2D does (which drifts from the textbook parabola by ยฝยทgยทhยทt), so the ball follows the dots.

- Slow motion while you aim in mid-air scales Time.timeScale and fixedDeltaTime together, so physics stays smooth.

- Hit-stops come from one class that owns Time.timeScale, and the screen shake is a Cinemachine 3 impulse.

- Everything is pooled when the scene loads, so nothing is instantiated during play. The WebGL build is about 15 MB with Brotli.
Play it free, no account needed: https://svg.games/games/oddball

Happy to answer questions about any of it.


r/Unity2D • • 2d ago

Question/Help Ayuda con algo

0 Upvotes

Hola que tal soy un pibe que esta cursando la facultad debemos hacer un juego pero tenemos unos problemas ya probamos un monton de soluciones de la ia y no sabemos que hacer como se ve en la imagen cuando cargamos una imagen del personaje sale gris pero con el resto de assets mas chicos no pasa nada si alguien nos puede ayudar estaria agradecido


r/Unity2D • • 2d ago

Showcase Hundreds of enemies in a 2D Unity game: ECS + instanced sprite sheets

Post image
1 Upvotes

For Choo Choo Kingdom I needed big hordes in 2D, and one GameObject per enemy didn't scale.

Setup:

- Enemies are ECS entities

- One instanced quad per enemy with an alpha-clip sprite-sheet shader, frame index per entity

- Troops stay as normal GameObjects with Animators (max 16)

- Pixel Perfect camera at 32 PPU

Happy to go into details. Free demo here if you want to see it running: https://store.steampowered.com/app/4697150/

Art and sound are assets bought on itch.io. AI was used for localization.


r/Unity2D • • 2d ago

Paid Asset/Tool Pixel art import settings in Unity 2D that fix most blurry or shimmering sprites

2 Upvotes

I make 2D asset packs and the same import questions keep coming up, so here's the checklist I use.

Filter Mode to Point (no filter), or the sprites come out blurry.

Compression to None. Compressed pixel art gets color bleeding, especially on small sprites.

Pixels Per Unit equal to your tile size (16 for 16x16 tiles) so one tile is one unit and the grid lines up.

Turn off Generate Mip Maps.

Raise Max Size if your sheet is bigger than 2048, otherwise Unity quietly downscales it.

Add the Pixel Perfect Camera component and set the reference resolution to your target. That stops the shimmer when the camera moves.

If you see thin lines between tilemap tiles, pack the tiles in a Sprite Atlas with 2 to 4 px of padding.

For sound, short UI and hit effects work well as WAV with Decompress On Load, and music as OGG with Streaming.

If you want some sprites to test this on, my 2D packs are in a bundle until Nov 30: https://itch.io/s/208799/winter-sale-40-game-asset-packs-for-1999-save-91

Happy to help if something still looks off.


r/Unity2D • • 2d ago

Showcase How I lay out a 2.5D battle in Unity (Scene View vs. game camera)

Post image
1 Upvotes

This is a village battle from Necrolord, the necromancy game Iโ€™m making in Unity. Both shots show the same instant. I froze the fight and swung the Scene View around to one side so you can see how the battlefield fits together.

The characters are 2D sprites moving across a 3D ground plane. The fence in front is my favorite reference point in the GIF. From the side you can see how much space there is between it, the fighters, and the village behind them. Through the game camera, that same fence becomes a silhouette along the bottom of the frame.

Thatโ€™s the part I enjoy about working in 2.5D. I can compose the village like an illustration and still give two armies enough room to move around each other.

If youโ€™d like to try a battle yourself, thereโ€™s a free demo on Steam.


r/Unity2D • • 3d ago

Free Asset/Tool Free Pixel Art Characters and Japanese Interior

Thumbnail
gallery
8 Upvotes

Hi, here is my new free assets. You can check out my itch io profile if you like it.

https://hyarismeowt.itch.io/halloween-characters-pixel-art-asset-pack-32x32


r/Unity2D • • 3d ago

Showcase I made my own 2D game โ€“ Delivery Dash! ๐Ÿฆ๐Ÿš—

Thumbnail
youtu.be
0 Upvotes

Hey everyone!

I wanted to share a game I've recently developed while learning Unity2D through a GameDev.tv course on Udemy.

The game is called Delivery Dash. The concept is simple: drive around, pick up ice creams, and deliver them to customers!

This project has been a great learning experience, and I've enjoyed putting the concepts from the course into practice while building the game.

I'm still learning and exploring game development, so I'd really appreciate your feedback!

Would love to hear your thoughts on the gameplay and what I could improve.

Thanks for checking it out! ๐Ÿ˜Š


r/Unity2D • • 3d ago

Showcase People started using screenshots of my game as wallpapers... so I turned it into a living desktop wallpaper.

Post image
29 Upvotes

After almost two years of development, DEEPLANDERS is finally out on Steam!

I've shared its layered 2D world here before, and one thing that surprised me was seeing people say they had taken screenshots to use as desktop wallpapers. That stuck with me.

So I decided to go a step further and added Wallpaper Mode: the little underground world can live behind your Windows desktop windows, and you can bring it forward again whenever you want to interact with it.

It wasn't part of the original plan. It came directly from reactions to the game's art and atmosphere, so I wanted to say thank you to everyone who commented, encouraged me, or gave feedback along the way.

It's a small, unusual construction puzzle about finding a place for everyone underground, and it's finally available. I hope you enjoy it!

Steam: https://store.steampowered.com/app/3192550/DEEPLANDERS/


r/Unity2D • • 4d ago

Showcase Our team has just released and submitted our game for the Official Unity Game Jam! Feedbacks are welcome! (The gif is speed up by 1.5x)

Post image
6 Upvotes

Somebody got caught cheating at the casino. Now nobody's playing nice.

Lucky Brawler is a top-down, luck-based brawler for up to 4 players on one PC. Your weapon is a die, every throw is a gamble, and the number you roll decides whether you blow up the room or end up under the chandelier.

Nobody to play with? Ready up alone and three bots join the table.

You can try it out here: https://itch.io/jam/official-unity-game-jam-2026/rate/5353461

If you enjoy it, please consider giving us a rating on our jam submission page.

This footage is from a very late game session. You can stack buffs. It will start going crazy around round 20+.


r/Unity2D • • 4d ago

Question/Help my first 2d unity game

2 Upvotes

I'm making a 2D game in Unity and I'm trying to set up an enemy spawn system.I want an enemy to spawn when the player enters a trigger zone. I already have the enemy saved as a prefab, and I've added a Box Collider 2D with Is Trigger enabled.i'm also using the Simple Spawner and On Trigger Enter Invoke components, but I can't figure out how to connect them properly.

How can I make the Simple Spawner spawn an enemy when the player enters the SpawnZone?

I'd really appreciate a step-by-step explanation, preferably without writing code.

Thanks!