/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

154,982 Subscribers

11

I’ve been working hard to find the right look and final touches for the characters. After several iterations and 85 frames later, I think I’ve finally found what I was looking for.

4 Comments
2024/11/01
20:52 UTC

1

Need help on getting rid of tearing on tilemap after switching to URP for 2D Lighting

3 Comments
2024/11/01
20:38 UTC

1

GPU efficient 2D water simulation?

I'm making a 2D side-scrolling game about rescuing people from coastal caves before the caves fill with water when the tide comes in.

I'd like to be able to simulate the water that flows into the caves and floods it but what I've found is that the individual water particle + shader approach such as shown here by code monkey: https://www.youtube.com/watch?v=_8v4DRhHu2g&ab_channel=CodeMonkey and here: https://www.youtube.com/watch?v=NlqqDcAK5rM&ab_channel=AlexandreSajus are expectedly very GPU intensive as it requires rendering and simulating 100s of particles. Also as my cave systems are pretty big, it would take 1000s of particles to fill which even the best GPUs would struggle to do.

Does anyone know of a GPU efficient way of simulating realistic water flow? I get that fluid simulation is a cutting edge area so maybe there isn't a better way. If not I will try some pre-made water simulation assets and hope they are efficient.

Thanks!

0 Comments
2024/11/01
20:25 UTC

2 Comments
2024/11/01
19:46 UTC

1

Noob question: Image resizing in Unity

Hello!

A friend and I are working on a 2D game for the first time and we noticed scaling down images in Unity looks really bad in Unity no matter what settings we use. Resizing the image in another program before importing works fine.

I originally was planning on drawing all assets extra large to be able to support higher resolutions, but now I'm not so sure. Is there a trick we're missing?

Jpgs seem to resize fine, but pngs look messed up. We kinda need the transparency though. :(

18 Comments
2024/11/01
15:59 UTC

1

Truck trailer joint

Hey guys, I'm new to unity and have trouble implementing a realistic trailer into my game. It's a basic top-down trucking/parking game. I've tried the built-in joints and coding one myself, but all of them don't feel right. Any help will be appreciated.

2 Comments
2024/11/01
14:26 UTC

1

I made open-code my annoyingly hard 2D game, free source codes

https://i.redd.it/9q67757ygayd1.gif

Hi I made open-code my annoyingly hard 2D game.
There are basic mechanics for 2D like:
- double jump
- coyote time
- swinging
- broken blocks
- spikes etc.
You can feel free to use it codes and pixels :)
Source: https://github.com/KaganAyten/youcantwin-source

0 Comments
2024/11/01
13:06 UTC

2

What would be a good size for cards?

Hi. I always wanted to do games like card games or based on images so I wondered what's the standard or the good size for images to get a good resolution while the card or image is big on screen and if it's good to have lower resolution images too when the cards/images are small on the deck or somewhere

Edit: I'm talking about the size of the images/sprites/cards. To know resolutions

2 Comments
2024/11/01
11:26 UTC

1

Textures disappearing on build and on editor after build

3 Comments
2024/11/01
11:23 UTC

18

CORRECT way to manage Scenes and Subscenes in Unity ECS - Link to the Full Tutorial in the Description 🍻

1 Comment
2024/11/01
10:53 UTC

1

Struggling to implement the setAdvertiserTrackingEnabled flag for Meta (iOS)

Hi everyone,

I'm working on a Unity project using AppLovin max sdk, but I need to do something for the Meta audience network and i'm so confused about it, has anyone ever successfully integrated it?

Thank you in advance for your time and help.

0 Comments
2024/11/01
09:17 UTC

2

can you guy help me i want to remember the game that i play in the past few year i can describe the game.

if you guys familiar with Miragine war the game mechanics is like that, but it's totally different 2d battle simulator that you can control each character you choose and they have a different unique abilities that you can use, the character in game in most likely Some tiny pirates every battle you can upgrade your character abilities to survive next round, and every victory you made, the character in game is jumping, i can't remember hhe game title so please 🥺🙏 help me!!!!!

2 Comments
2024/11/01
08:32 UTC

21

New down air attack animations! ^_^ 🥷💥

5 Comments
2024/10/31
23:31 UTC

0

Animate Prefab

Why can't I just put sprites into the animation clip? Why does there have to be a game object? I need to make it so that my prefab for a type of unit in my game always has the right animations, but I don't necessarily want it to be in every scene, so it won't always be a game object in the hierarchy, but it won't let me add sprites to animations that aren't attatched to game objects in the scene. This is so dumb.

2 Comments
2024/10/31
22:33 UTC

2

I made first multiplayer game and made a video about it

So, I made my first multiplayer game and made a video about it on youtube: https://youtu.be/b2US4xH6v-E If you want you can leave some feedback on it, I would highly appreaciate it!

0 Comments
2024/10/31
19:26 UTC

1

Skybox bugging out

https://preview.redd.it/7umq6asp35yd1.jpg?width=1062&format=pjpg&auto=webp&s=d51c918a51305b4130781d97af99ec1c1af0f791

This is a 2d game, we just fooled around with the camera. I cant find a possible solution on how to fix this. everytime i move the camera the last frame just stays there. is there anyway to fix this? or create a sky box in a non conventional way

2 Comments
2024/10/31
19:04 UTC

1

Do you purchase UI Kits? or build your own?

A big part of why i never finish my ideas is because of the UI. I never truly love my UI design mainly because I am not that good at it at all AND I am VERY new to unity.

The whole core logic of my 2d game is finished, the integrations of leaderboards using playfab is finished, because its a mobile game, PlayGames is integrated and the game is working as intended for the core logic.

However, where I'm about to get overwhelmed by this feeling of "my UI sucks just quit" -- I want to integrate a store, I want to integrate more appealing aesthetics into my game that makes me leaderboards look better along with my general design of my players interactions.

Are these things you generally purchase? is it easy to build your own? I was looking at the image below to generally suit my game mainly around the level failed and level win portion. but is it better to purchase these items?

https://preview.redd.it/t8h3m4oci4yd1.png?width=1210&format=png&auto=webp&s=fdfcf9f7a503a98bd423fa782d0ccaf431b291af

18 Comments
2024/10/31
17:03 UTC

1

My first game released on steam. Just 1$ and have as many attempts as you want at this action packed Arcade Shoot Em'up

1 Comment
2024/10/31
16:17 UTC

2

Pixelart Trail Renderer and pixelart background

Hello guys, I have been working on a game recently that is intended to be full pixel art, and I wanted to "pixelate" a trail renderer so it would be easier than making a particle system follow the game object (which moves using physics).

At the beginning, I used the Pixel Perfect Camera with a low resolution (320x180), and it looked perfect, but when I added a pixel art background, it stretched the pixels no matter what I did. I also tried using a fullscreen shader to pixelate, but that didn’t work either. I even tried using a specific shader to pixelate the material that the Trail Renderer uses (which seems like the best approach), but I couldn't make it work.

Another experiment was to use two cameras to only pixelate the layer the trail renderer was on, but because the background was on the main camera, it didn’t show in front, and I gave up.

Note: I’m not great at making shaders, so that may be the main issue, but if someone knows a way to achieve this "pixelation effect" on a trail renderer without affecting the rest of the game objects, it would be lovely!

Extra Note: I'm using the new Unity 6 version

0 Comments
2024/10/31
16:02 UTC

1

Unity stalls on import

When I started working on my project today, all of a sudden unity started stalling when importing "InputSystem_Actions.inputactions" asset ( I hadnt't changed this file ), which causes Unity to be unresponsive, forcing me to close it in the task manager. It only does this when trying to start the game, and it's always this exact asset. When I then relaunch it it might work the first one or two times when launching the game, but then I get this again. None of the fixes I've found on Unity forums ( deleting cache and library folders, simplifying input action names to not use special characters ) have helped. Please help.

https://preview.redd.it/zdadzq5as2yd1.png?width=525&format=png&auto=webp&s=a6fa06173f566aa4be787b146052ff6ffab1b742

2 Comments
2024/10/31
11:15 UTC

1

What social media sites do you use to promote your game?

Hey guys, got another poll for you! :) We are trying to be active on social media sites, so people know we are working on something, how is it going, you know, the classic promoting stuff. We use Twitter, Facebook, Instagram and TikTok, but I am not sure, if it makes sense, since the numbers are not big and it is hard to predict the impact.

So I wonder, what sites you use? :) I know that you can select only one option, so I tried to categorize them a bit, but feel free to describe your selection in comments.

Thank you, and I am looking forward to see results!

View Poll

3 Comments
2024/10/31
10:32 UTC

1

When using NGOs RPCs ever wanted to send a rpc direct to a client from a client instead of redirecting it manually requiring 2 rpcs. I have built a tool that already does that automatically for you, if you want to learn more about it please check the comments!

1 Comment
2024/10/31
09:17 UTC

1

Issues with Game Background on Android Build

Hi everyone,

I recently followed a tutorial to build my game for Android, and while the high score system, sound, and gameplay are working fine, I'm facing an issue where the backgrounds (bird, pipe, ground) are all appearing black.

I've double-checked my assets and settings in Unity, but I can't seem to figure out what's causing this problem.

Has anyone experienced something similar or have any suggestions on how to resolve this? Thanks in advance for your help!

https://preview.redd.it/97tdml2yh1yd1.png?width=283&format=png&auto=webp&s=7626d67b6aa13b290d0013227dff8668d161a0d0

https://preview.redd.it/955qi1tyh1yd1.png?width=1080&format=png&auto=webp&s=75bbb229a3b1e42fc7f50c72dfa4428bdf6ae943

2 Comments
2024/10/31
06:56 UTC

1

Doors on a tilemap with Coliders 2d help

I have a wall tiles placed on a a wall tilemap with a coliders 2d, they is also a npc gameobject with a coilder 2d and the door gameobject has a colider 2d too but set as a trigger which change the sprite to look open when the npc ender the coilder of the door.

The player can place a door gameobject that can only be placed on the wall tile when this happens the wall tile sprite is turn off but the wall coilder is still active.

I need the wall tile/tilemap coilder 2d to stay in place so the floor tile fill still work and so other npc don't walk through the wall.

Is they a way to get a gameobject(npc) to ingore a coilder, but only the npc walking through the door? How has anyone else implemented doors on Tilemaps which the npcs can walk through(top down)?

4 Comments
2024/10/31
03:26 UTC

1

Gradle build error due to admob plugin

After days of research and seeking help, I finally found the solution.

I was initially using unity 2022.3.30 but had to switch the project to unity 6. After that, I downgraded the Google mobile ads plugin version to 8.6.0(This was compatible for me and alot others)

0 Comments
2024/10/31
02:49 UTC

7

Created a Arena Manager AI vs AI strategy mobile game

https://preview.redd.it/x0et3yw2gzxd1.png?width=1200&format=png&auto=webp&s=0d7c0d06e4b1d555281ef8dc0d4a19b185db2ead

Inspired by many Youtubers that makes Ai vs AI NPC battle comparison on arena for popular games :3 Still on early version, hope at least playable. Link to Play market: https://play.google.com/store/apps/details?id=com.Democrypt.coliseumbattle

1 Comment
2024/10/31
00:04 UTC

55

Built with Unity and crafted with a lot of heart. We’re starting to grow our community and will kick off playtesting soon!

10 Comments
2024/10/30
23:57 UTC

2

Finally we can share what we've been working on this last year! The Kickstarter for our pixel art RPG game is up today! The Erebus Accord is our take on an anomaly containment game. Let us know what you think :)

2 Comments
2024/10/30
21:40 UTC

Back To Top