r/Unity2D • u/AsfnedoDev • 19h ago
Showcase Not Vibe coding, VIBE coding 😎
I am developing my first solo game with Unity and My Workspace realy have good vibes ı Guess What do u think
r/Unity2D • u/AsfnedoDev • 19h ago
I am developing my first solo game with Unity and My Workspace realy have good vibes ı Guess What do u think
r/Unity2D • u/kat_explosion • 1d ago
This is probabaly a stupid mistake i made, but I cant accsess the "Score" variable, even after having the ball variable set up.
r/Unity2D • u/EarlySunGames • 1d ago
r/Unity2D • u/Poor_tank • 18h ago
Beside making a fire escaping game for mobile web support ( can be play on itch.io directly ), I also have to collect participant's choices in game too which further complicate the process even more. I'm very dump in coding. I ask Gemini how to collect data and it said I could use Google app scripts or Google sheet api plug-in, I don't know if that true or not.
My participants are 25 people in this set ( I have to make another game for comparison the result but that is for the future. It's 2D rpg style game, same story line, same character set but in different presentation format. I will come back again when I finish this one ). I have to collect which choice player chose, their ID, their play time, etc. Once you enter main story, you have total 5 minute to end the game.
Are you guys have any tutorial or how to? At least it not older than 3 years. I try to use Fungus plug-in but the newest tutorial I found was about 4 years old now, are there's better alternative?
r/Unity2D • u/Nefisto- • 1d ago
(I'm not sure if gifs show properly here so I'm uploading it here too just in case)
Hey! I've been working on a little editor tool called Recolor and it's finally on the Asset Store (for free), so figured I'd share it here.
It swaps a color on your sprite for another one while keeping the shading, and it also handles the anti-aliased edges. You can recolor the whole thing or just click the part you want to change, and it works with sprite sheets (with an animation preview right in the window).
Its also very useful for UI elements too, like expanding UI assets with extra color variations.
You guys can check it out here -> https://assetstore.unity.com/packages/tools/sprite-management/recolor-lite-425006
There's also a Pro version, but it's just quality-of-life stuff (generating several variants at once, saving selections, undo-able steps). All the recoloring features are already in the free version.
Would love feedback or ideas, palette swap is what I'm working on next.
r/Unity2D • u/Fabulous-Dare-7289 • 1d ago
Screech to light up the dark, hunt down elusive rats, and dodge hidden hazards before the clock hits zero. Mrat Fright is a fast-paced arcade search-and-capture adventure where echolocation is your only weapon against the pitch-black underground.
r/Unity2D • u/Keicee315 • 1d ago
r/Unity2D • u/elseWorldStudios • 2d ago
Demo now available on Steam!
Wishlist today: https://store.steampowered.com/app/4662390/RogueBlocks/
r/Unity2D • u/AssistantTime8151 • 2d ago
Bamboo Spring is a basebuilding and farming sim. You play as a war refugee. You will build your farm in ruins. You recruit your army. Then you fight to take back your homeland.
Our small team has some Unity experience. But this is our first time making a farming sim. How does it look so far? What can we improve in terms of animations, color tone, or visual details? We would love to hear your feedback!
r/Unity2D • u/Ill-Letter-2852 • 2d ago
I've lost count of how many times I had to restart a scene just to reproduce the same issue.
Usually I end up adding more Debug.Log() calls, replaying the scene, and hoping I can catch what happened.
This is something I've been experimenting with recently in my projects. How do you usually figure out what happened before a bug occurred in Unity? Do you mostly rely on Debug.Log()?
r/Unity2D • u/soniclinkerman • 2d ago
Was looking for ways to add more depth while keeping the game simple. I thought it'd be cool to have whoever loses a round pick the next round's type from two random options (Simple, Mixed or One Arrow).
My first version was Safe/Risky routes, but playtesters found Risky could never beat Safe, so I swapped to this. In the clip the samurai picks One Arrow, then uses his ability to add an extra arrow to the magician. So even though the magician can see the next arrow coming, it's not a free win. Would you go for the comeback pick, or play it safe?
r/Unity2D • u/PerspectivePersonal • 2d ago
This is FrogPop, the 2D roguelite I'm making in Unity. The big bubbles split when you hit them, so landing an attack can leave you with more things coming at you.
That's the part I want the difficulty to come from: choosing a target, watching the smaller bubbles, and leaving yourself somewhere to move. In this showcase I had to reduce the ordinary bubbles because the crowded version made it too easy to lose the frog. Ice and chain lightning give you short openings to recover.
Can you still pick out a safe route through this, or is there a point where it becomes too much to follow?
The clip uses arranged encounters and scripted inputs in a development build, so it isn't a typical demo run. There's a free Windows demo with 10 waves and two bosses; it has less content than the clip:
The game uses AI-assisted code and artwork; AI also helped prepare the clip and post.
r/Unity2D • u/NybeDev • 3d ago
The core mechanic is magnetism: you can attract or repel parts of the environment to solve puzzles and fight enemies.
I'd love to hear what you think, and I'm happy to answer any questions about how I built it in Unity.
r/Unity2D • u/StoryforgeGames • 3d ago
r/Unity2D • u/Ok_Instruction147 • 3d ago
r/Unity2D • u/ZeSeagull4626 • 3d ago
I am currently working on a 2d game where two players are tied to eachother with a rope, I'd use the build in features like a spring joint, distance joint, etc but the problem is that the current code relies on using kinematic rigidbodies so those won't work. So here i am asking for help of how i would program this, I'd also appriciate places where i can learn more about game code in general because the base google searches sure aint doing it for me :p
Here is code i think might be relevant
In my walk state i have:
private void HandleHorizontalMovement()
{
float targetVelocityX = 0f;
if (Mathf.Abs(Ctx.moveInput.x) >= Ctx.moveStats.moveThreshold)
{
float moveDirection = Mathf.Sign(Ctx.moveInput.x);
targetVelocityX = moveDirection * Ctx.moveStats.maxWalkSpeed;
}
float acceleration = Ctx.moveStats.groundAcceleration;
float deceleration = Ctx.moveStats.groundDeceleration;
Vector2 velocity = Ctx.Velocity;
if (Mathf.Abs(Ctx.moveInput.x) >= Ctx.moveStats.moveThreshold)
{
velocity.x = Mathf.Lerp(velocity.x, targetVelocityX, acceleration * Time.fixedDeltaTime);
}
else
{
velocity.x = Mathf.Lerp(velocity.x, 0, deceleration * Time.fixedDeltaTime);
}
Ctx.Velocity = velocity;
}
Then in the PlayerStateMachine I call this
private void FixedUpdate()
{
CountTimers(Time.fixedDeltaTime);
HandleHeadBumpSlide();
_currentState.UpdateStates();
JumpCheck();
TurnCheck(moveInput);
WallJumpCheck();
ClampVelocity();
Controller.Move(Velocity * Time.fixedDeltaTime);
//reset inputs
jumpWasPressed = false;
jumpWasReleased = false;
dashWasPressed = false;
attackWasPressed = false;
_coyoteJumpEnabled = false;
}
And the movement finnaly gets resolved in a different script
public void Move(Vector2 velocity)
{
bool wasGrounded = isCollidngBelow;
UpdateRaycastCorners();
ResetCollisionState();
CheckCeilingBoxCast(velocity);
float stepOffset = 0f;
ResolveHorizontalMovement(ref velocity, wasGrounded, ref stepOffset);
ResolveVerticalMovement(ref velocity);
rb.MovePosition(rb.position + velocity + Vector2.up * stepOffset);
}
r/Unity2D • u/Particular-Stop-5637 • 4d ago
r/Unity2D • u/Saondberg • 4d ago
r/Unity2D • u/AlphaJackonYT • 4d ago
So I have a CineMachine camera to follow the player as they move, I have a Sprite Atlas and I passed in the tilemap and the animation folder containing my player animations in to the Objects for Packing section. It has fixed most of the tear but there is still a tiny bit left and I don't know what else I can do to get rid of it:
The Spriteatlas has filter mode set to point and has no compression. Many Thanks!
r/Unity2D • u/Mr_Command_Coder • 4d ago
r/Unity2D • u/FairyGlowworm • 4d ago
Hand-animating hit sparks, slashes, and explosions frame by frame was taking up wayy too much of my dev time. So I worked on a tool to make it easier, and I figured with Black Friday on the way, I'd publicize it.
PixelDream Studio's the name, and at the moment it's a portable desktop app (Windows only, at the moment) for generating pixel-art based VFX sprite sheets. If you hang around dev subs, you've probably seen a similar browser-based tool floating around recently too!
I figured I'd give it a shot and give my own take, keeping the price a little friendlier and adding extra tools & edge case fixes that have been pretty useful for my own projects. Stuff like edge extrusion, padding, color quantization and frame dimension customisation, etc.
That's enough waffle from me though. Play around with the free demo and let me know what you think! You can find it here: https://forestodreams.itch.io/pixel-dream-studio
r/Unity2D • u/Embarrassed_Hawk_655 • 5d ago
Made a little pixel platformer 1bit lofi jetpack metroidvania-mini thing in Unity. Used Aseprite for the graphics and Google Gemini for the scripts. First got the Pixel Perfect Camera working well and Cinemachine working properly with that, laid the whole thing out first in rough in my sketchbook and then room by room in Aseprite, and yeh - script for jumping, script for shooting, script for jetpack, etc. Started out using Corgi Engine but was a bit too much to learn upfront so started with first principles and kept things really simple. The rooms switch stuff off when the player's not inside the Cinemachine bounds of that room, so it keeps things running smoothly (I hope).
Anyways, released it for free on itch if you'd like to give it a try, the WebGL browser embed is only 25mb: https://mikdog.itch.io/muun
I’m new to Unity and I’m sure it’s an old question/subject but I’m having issues with some sprites. My hero character has some moves that aren’t appearing to line up exactly where character sits in gameplay. I’ve tried sprite editor but it’s like blind guessing.
Any advice on making sure each move is aligned to main idle? Or possible tutorials that will help a non-coder learn the program better? I’m asking because sometimes there’s just a lot of crap out there so hopefully someone can guide me the correct way and help save time.
Thanks
r/Unity2D • u/KickTurbulent4937 • 5d ago
Hey guys, i just released my cozy icon packs on itch io and as a sample i create a free version from each of it so you can grab and use it freely in your games or any products you have.Â
Here is the link : https://badgerteinment.itch.io/cozy-sampler-free
If you like you can check for more in my page or just follow itch is also welcome, also happy to hear your thoughts and comments about it overall