/r/Unity2D

Photograph via snooOG

This is a subreddit for 2D or 2.5D game developers using the proprietary Unity game engine. New and experienced Unity developers alike should first consider using the free and open source Godot engine by default and ONLY choose Unity for 2D development if Godot isn't capable of the task. The times are quickly changing, and Godot is on track to surpass Unity for small developers.

About

This is a subreddit for 2D or 2.5D game developers using the proprietary Unity game engine. New and experienced Unity developers alike should first consider using the free and open source Godot engine by default and ONLY choose Unity for 2D development if Godot isn't capable of the task. The times are quickly changing, and Godot is on track to surpass Unity for small developers.

Getting Started


Godot Features

Download Godot

Godot Docs

Download Unity

Unity Manual

Official Reference

Asset Store

Software

Related Communities

/r/Godot - The "Unity Killer". A fully free and open source engine making astonishing leaps and bounds.

/r/UnityAssets - Share asset packs!

/r/PixelArt - Admire, share, and observe beautiful pixel art.

/r/GameDev - Meet and communicate with other game developers.

/r/GameDesign - Don't just make a game. Make a good game.

/r/LevelDesign - Learn to make excellent levels and worlds.

/r/GameAudio - It may look good, but does it sound good?


CSS created by Sean O'Dowd @nicetrysean [Website]

/r/Unity2D

160,269 Subscribers

0

Captain cats is ready and dropping tomorrow!

Captain cats is dropping tomorrow!

https://www.youtube.com/watch?v=c9XNZkawLjY

2 Comments
2025/02/01
16:56 UTC

9

I wanted to make sure the player understands how criticals work, so I used the character's 'zoned out' state to repeat the information without breaking immersion too much.

2 Comments
2025/02/01
16:06 UTC

53

Hi. Today we made a Steam page for our game.

9 Comments
2025/02/01
15:57 UTC

0

Captain cats is dropping soon! Do you like it?

https://www.youtube.com/watch?v=c9XNZkawLjY

Rebels have taken over Meow-1 and they want to turn black cats into slaves! Can you stop them?

2 Comments
2025/02/01
11:53 UTC

0

Captain cats is dropping soon! Do you like it?

https://www.youtube.com/watch?v=c9XNZkawLjY

Rebels have taken over Meow-1 and they want to turn black cats into slaves! Can you stop them?

2 Comments
2025/02/01
11:53 UTC

0

Game camera movement issues

So, I made this program where the camera tracks the player. The idea is that the camera will move to a spot that’s between where it was 0.005 seconds ago and the player’s current position to create this smooth movement effect. Well, the result isn’t exactly what I hoped for.

At first, when the player moves in a straight line, the camera follows normally. But after a few seconds, it starts shaking from sideandand to side (like in movie I posted), and the shaking just keeps getting worse the longer it goes on. It’s honestly driving me nuts.

This is the program

https://preview.redd.it/1wj7zxuqsgge1.png?width=1394&format=png&auto=webp&s=4fc0cf929d50253c01026c74ac89843b20c64a0c

The variable MovementCameraDelay is set to 0.005f and EndTime is 0.25f.

MovementCameraPos is a position which at the position 3.5 above and to the right of the player, its parent object is the player, so it will move with the player.

https://preview.redd.it/q9k0s82yvgge1.png?width=464&format=png&auto=webp&s=1700ab2ee2c4622cbf17967c9a0d7625a408f047

(I hope you can understand this question, because I translated it using Google Translate and my native language is not English.)

2 Comments
2025/02/01
05:39 UTC

4

Programming private properties.

C# properties are private by default.

In this case, is there any advantage to adding "private" before each property that should be private?

Just curious do we get any benefits such as readability, or is it just a coding style choice?

5 Comments
2025/02/01
05:14 UTC

1

How can I put 2d Character in UI Canvas?

https://preview.redd.it/wiovb6fafgge1.jpg?width=1280&format=pjpg&auto=webp&s=f7b939b3a9800a754d1febf0694749744296719e

I'm trying to make character display system like Battle Brothers.
These characters are going to be look same even outside the UI.
But when I put SpriteRenderer objects in World Space Canvas, they look 100 times smaller.

  1. Putting a camera over each character to show them doesn't look rational.
  2. Change Sprite Renderer to Image everytime I call them also doesn't look good.

Actually, I want to put Sprite Renderer Character over UI Canvas.
Is there setting or so of thing that matches SpriteRenderer component and Image component to have same size?

0 Comments
2025/02/01
04:28 UTC

18

A new enemy design for our game!

1 Comment
2025/02/01
00:08 UTC

6

Hi, the demo of my first game is now available on Steam.

3 Comments
2025/01/31
21:35 UTC

0

Stop walking animation when jumping?

Hi!

So I haven’t touched Unity in a few years now (life, kids etc) but decided to make a small 2D side scrolling shooter for the fun of it. I’ve reached the point where I got the player up and running, but the jump portion of it is driving me nuts. So first I could infinit jump, so I started to play with the Groundcheck. Then I got jump animation of I just put it in the scene, but if I nested it to the player he just jumped but no animation played. Started changing the size of the Groundcheck object and eventually he got kinda stuck in the jump animation looping but couldn’t take off from the ground. I’ve now made sure the transitions are properly set up and got it to work whilst it’s nested to the player character. However, now when I jump whilst running the running animation finishes playing before it changes to the jump animation mid jump. I have a vague memory of having a similar issue on a project way back but got it solved somehow. Sorry for not pasting my code or anything but I’m traveling over the weekend for work. Does anyone have any wisdom to share on how I might solve this?

Jumping is literally done by applying jump force in a normal player control script. Cheers

5 Comments
2025/01/31
20:30 UTC

0

Why isn't my rotation working?

I'm making a game where the player is a robot. I am trying to add a wheel that will spin when the player moves. The wheel however is acting extremely weirdly and I can't figure out why. Here is my code:

The code that controlls the wheel

2 Comments
2025/01/31
19:38 UTC

3

⭐ Hi! 😊 I made a small walkthrough of my Unity setup for people who want to know what an engine looks like! 🌿 How does your setup look like?

1 Comment
2025/01/31
19:21 UTC

2

How to make an event trigger another event?

I'm currently working on fleshing out the events and decisions for a choice-based interactive game, and I was wondering how I'd actually go about creating the mechanics for this? I'm new to Unity, so I'm not experienced in any sense other than the very basics of the program (like the UI and things of that nature). I haven't actually really started on the game either, but I do want to be prepared and learn in advance, so the process is a lot less time-consuming, and I have some knowledge when I do eventually start on it.

An example of what I want to do is this:

https://preview.redd.it/zo6cxg5redge1.png?width=1132&format=png&auto=webp&s=c41ce077cb221c5ab122348bd18c12d4210cb0bb

In the game, say you select Choice 1. How would I set it up so selecting Choice 1 triggers Event 1? I'd also like for there to be multiple methods to selecting a choice. What I have in mind is you can either click with your mouse or hit the '1' or '2' keys on your keyboard.

Any help would be appreciated! Thanks!

5 Comments
2025/01/31
18:18 UTC

37

I finally got around to making the player's companions to follow you in the world like a true RPG.

6 Comments
2025/01/31
15:20 UTC

2

Ready for a massive gamedev event? Join DevGAMM Gdańsk on Feb 27-28, 2025!

3 Comments
2025/01/31
11:36 UTC

159

The process of creating the "Survival Support Robot" – ROV-13 for my project.

1 Comment
2025/01/31
08:23 UTC

2

Slicing spritesheet?

Hello all,

fairly new unity developer here, having a hard time understanding spritesheet slicing.

Attached here i have a spritesheet. I have used others for my tilemaps, where i can just slice everything by 16x16 for instance, and it works because every tile is that size.

However, as seen here, there are varius size. Some objects in this tilemap are bigger than others. How do i go about slicing this? Unity tries automatically, and it works for 90% of the tilemap, but as you can see there is 1 section where it just groups 20 objects together into 1.

How do i go about using this? thanks all :)

https://preview.redd.it/t5ro7kvtn8ge1.png?width=946&format=png&auto=webp&s=77f4f25ffef12175d954e69bf348e26b6ad7b6c5

2 Comments
2025/01/31
02:15 UTC

0

Lines between tiles, pixel perfect camera, player shaking..

Hi,

I have a 2D game I'm working on where I'm using a tilemap and it gets black lines between the tiles as I move. To combat this, I applied a Pixel Perfect Camera component to my camera.

But that caused an issue where my player moving causes its sprite to mess up and appear to be shaking, I believe due to the player movement lerping between two points, which causes it to not perfectly fall between 2 tiles..

Anyone have ideas about how to go about fixing the issue?

Thanks.

2 Comments
2025/01/31
02:09 UTC

11

My minimalist design for my "Exponential RPG"

2 Comments
2025/01/30
22:49 UTC

1

[Ascension Loot] Roguelite | Monster Cards | Daily Challenge – Made by Two Brothers!

🚀 Ascension Loot is now available on Android, and we’re bringing fresh updates! My brother and I have just added two major features:

🔥 Monster Cards & Keys

  • Collect Monster Cards using keys obtained during your expeditions! These cards provide permanent buffs to power up your hero.
  • How to get keys?
  • 🔓 1% drop from regular mobs.🎯 5% drop from map bosses (first victory of the day).💥 100% drop from story bosses (one per prestige).🏆 Daily Bonus: Complete 4 daily quests to earn an extra key!
  • Monster Card System:
  • Cards range from C to SSS, with stronger effects depending on rarity.Cards stack: The more copies of a monster card you collect, the stronger its buffs!

🏞️ Daily Expeditions

  • A special daily expedition where everyone starts from scratch (no levels, no buffs)!
  • Goal: Deal as much damage as possible to the final boss.
  • Daily Leaderboard: The more damage you deal, the more keys you earn at the end of the day!

📲 Available now on Android!

💬 Try it out and let us know what you think! We’d love your feedback and ideas for future updates. 🚀

https://play.google.com/store/apps/details?id=com.devdelean.ascensionloot

https://preview.redd.it/fcjdypf7r6ge1.png?width=491&format=png&auto=webp&s=13c40885ee0551770fe4457d9a82a1a42408fc76

https://preview.redd.it/m6hfq6rbr6ge1.png?width=492&format=png&auto=webp&s=57c6441e984a1361d5da01c95c26f6dabecc8d8c

0 Comments
2025/01/30
19:51 UTC

4

Sharing an environment we created

1 Comment
2025/01/30
19:06 UTC

0

I bought the Corgi engine, but it won't show up in my assets. It just presents the option to buy it.

Has anyone run into this issue before? Unity is saying it could take a couple months to reply to my ticket

8 Comments
2025/01/30
17:23 UTC

0

Seeking Collaborators for Game Development Project

Hello everyone,

I hope you're all doing well. I wanted to reach out to see if anyone would be interested in collaborating on a game project. While I currently have a full-time job and family commitments, which limit my availability during the week, I can dedicate a few hours over the weekends to contribute.

I believe creating a Discord group could be a great way for us to communicate and brainstorm ideas efficiently. I’ve been working on game concepts for quite some time and have some coding experience, but I’m looking for a team to help bring those ideas to life, as I simply don't have the time to develop the project solo.

It would be fantastic to assemble a small, dedicated team and collaborate on creating something exciting. If anyone is interested, I’d love to discuss potential ideas and see how we can move forward together.

Best regards, Mike

2 Comments
2025/01/30
16:46 UTC

Back To Top