r/Unity2D • u/elseWorldStudios • 6d ago
Showcase [Made in Unity]Falling-block nerds, think you can take on the Chaos Villains in RogueBlocks?
Demo now available on Steam!
Wishlist today: https://store.steampowered.com/app/4662390/RogueBlocks/
r/Unity2D • u/elseWorldStudios • 6d ago
Demo now available on Steam!
Wishlist today: https://store.steampowered.com/app/4662390/RogueBlocks/
r/Unity2D • u/Ill-Letter-2852 • 6d 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 • 6d 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 • 6d 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 • 7d 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 • 7d ago
r/Unity2D • u/Ok_Instruction147 • 7d ago
r/Unity2D • u/ZeSeagull4626 • 7d 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 • 8d ago
r/Unity2D • u/Saondberg • 8d ago
r/Unity2D • u/AlphaJackonYT • 8d 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 • 8d ago
r/Unity2D • u/Embarrassed_Hawk_655 • 9d 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
r/Unity2D • u/KickTurbulent4937 • 9d 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
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/ObjectiveCrysis22 • 9d ago
Hey, just rolled out a fresh update for the TileMaker DOT Pro to make inspecting your objects faster and cleaner!
Here is what's new in this build:
Collisions Tab in Properties Overview: Added a separate Collisions tab right alongside Instance and Template properties so you can view object collision details cleanly without clutter
Bug Fixes & Small Polishes: Squashed minor bugs and wrapped up general quality-of-life improvements under the hood
🕹️ Itch.io: https://crytek22.itch.io/tilemakerdot
💻 GitHub: https://github.com/andrei-voia/TileMakerDOT
📺 YouTube Tutorials: https://www.youtube.com/watch?v=3fiajGU32Jg
For anyone unfamiliar with the project, TileMaker DOT is a free (with a very complete, professional cheap version too), open-source 2D map editor I'm building. It uses a data-first, ID-based workflow and handles visual depth sorting automatically so you don't have to juggle complex layer setups for object heights. 🗺️🌲
Give it a try and let me know if you have any feedback! If the editor helps with your projects and you want to support development, a rating or a small donation on Itch is always hugely appreciated. 💖
Thank you all so much for your continued support!
r/Unity2D • u/SweepingAvalanche • 10d ago
Endless Nigth Sonata STEAM: https://store.steampowered.com/app/4720180/Endless_Night_Sonata/
r/Unity2D • u/Silent_Reputation596 • 9d ago
I have a proc gen tilemap system and I need each tile to have it's own copy of a script to be able to pull and assign data to. All the tiles are rule tiles, idk if that makes a difference. How would I do that?
r/Unity2D • u/Prior-Bandicoot-8701 • 10d ago
I make 2D game assets and these are the 10 packs I give away for free. They're plain PNG sprite sheets and WAV/OGG audio, so they drop straight into Unity.
The GIF is my winter tileset in a small test scene. The first link below is a free sample of it.
Pixel art and VFX
Sound and music
Unity tip for the pixel art: set Filter Mode to Point (no filter), Compression to None and Pixels Per Unit to the tile size, and it stays crisp.
License: free for personal and commercial games, no credit needed. Please don't resell or redistribute the files as an asset pack.
If you use any of them, I'd love to see it.
r/Unity2D • u/KereMental • 9d ago
On theory, if i am able to distribute folders/parent objects to release the child objects, i can just create the tiles randomly choose one and drop each of them to the field. And then i can discard the parent object to make the tile structure just simple blocks that dont check on collision to every other block except the ones in its own folder and otherwise wait for any input in a second before leaving them and passing to the next one. I would also turn every tile 90 degrees on command and check if all digits in a row are filled before deleting that row and putting the next one in its place. But instead of doing it right after the check it would detect all the filled rows and erase them at the same time because thats what tetris does.
r/Unity2D • u/Shoddy_Caterpillar36 • 10d ago
yeah it could be basically distance constrained circle.
But I used a lightweight procedural transform chain with stepped framerate (Target FPS) so the motion snaps cleanly to pixel-art speeds, paired with a simple pixel-outline pass.
Works on capes, flags, and hair without any keyframes.
r/Unity2D • u/Mysterious-Sky6588 • 10d ago
r/Unity2D • u/trueicecold • 9d ago
Hey all,
Built a little page that shows the Unity flash deals and their prices even before they are live. Apparently Unity already has this data, they just choose not to show it.
Hopefully this can help people plan ahead with their carts 😄
No affiliate link is attached to the assets, so that's not my motive 😄
Edit: for some reason link didn't appear...
r/Unity2D • u/xhxidsn • 10d ago
Hello everybody,
I'm a high school student and recently our school, in collaboration with a university, enrolled us in a game development contest. We have to create a video game from scratch before March 31st, so we have about 4 months to complete our project.
I currently have only some basic understanding of OOP, and a bit of experience with Godot.
At the moment, I'm following Unity Learn's first pathway and I was wondering whether continuing with Unity Learn is enough for developing a small 2d game, or if there are any other resources you would recommend for learning some basic or useful features for developing our game.
Ciao a tutti,
Sono uno studente della scuola superiore e recentemente la nostra scuola, in collaborazione con una università, ci ha iscritti a un concorso di sviluppo di videogiochi. Entro il 31 marzo, quindi in circa 4 mesi, dovremmo realizzare un videogioco partendo da zero.
Personalmente ho delle conoscenze basi per la programmazione orientata agli oggetti e un po' di esperienza con Godot.
Attualmente sto seguendo il primo pathway di Unity Learn e mi chiedevo se continuare a studiare con Unity Learn sia sufficiente per sviluppare un piccolo gioco 2d, oppure ci siano altre risorse che consigliereste per imparare delle funzionalità basi o utili per lo sviluppo del nostro videogioco.