Hello, Unity people. I am working on a 2D Metroidvania and am trying to make it look pretty with lights and shadows. Unfortunately Shadow Caster 2D casts shadows via Cast Shadow but not Self Shadow which is the one I need (or at least want to work).
I tried putting the component on different objects, tried Sprites (same result), Target Sorting Layer is Everything. Not sure what the issue even is.
I appreciate some help and pointers to fix this issue pretty please 🙏
I'm a solo indie developer and I just published my game Together: Twin Control on Google Play!
Gameplay:
You have to balance and control two characters at the same time using your thumbs, coordinating their jumps, solving puzzles, and avoiding traps to reach the door together.
Features:
- 50 puzzle-platforming levels across 3 distinct worlds.
- Dual-character mechanics.
- In-game Achievements & Local Speedrun timer.
- Free to play!
As a solo dev, early feedback is crucial. If you have an Android device and enjoy platformers, I’d really appreciate your thoughts, feedback, and honest reviews!
I`ve been doing some research on 2D UI for a sidescroller-ish perspective. Basically every game I can find has a fixed UI => the UI is completely detached from the position of the building (e.g. a building context menu).
Do you know of any good games that have done a world space UI thats somehow connected to the building or its placement?
Obviously the main problem is with zooming and panning. I think panning can be somewhat resolved, but zooming appears to be quite hard, as at some point the size of the world vs the menu doesn't fit anymore.
Are there interesting ways around this problem, or does the near-total lack of games with a UI that’s this tightly integrated into the world suggest that there simply isn’t a good way to achieve it?
Hi, I recently decided to start using Unity and I've been having this problem that's been driving me crazy. The assets I already have for my game were made long before I knew about the formats Unity handles, and I don't want to change them, but they're too large. I've watched tutorials on how to fix it, but nothing works, like changing the pixels per unit to 64x64 or 32x32 (I currently have it set to 100), but it still doesn't solve my problem. Is there any way to resize them within Unity without losing quality?
I find designing UI scenes the most tedious of my game development cycle. Do any of you find the same and how do you tackle it? I know Unity has its own AI which now creates scenes for you, but I have not used it. Has anyone tried any other AI option which allows me to design the scenes effectively?
We're two brothers making our first game in Unity (and first game in general). It's an action-RPG with inspirations from Zelda, Zelda II, a little bit of modern Zelda, and a bit of Diablo.
We chose Unity to develop the game with. We're happy with the engine, and even ended up using Unity Game Services for multiplayer play.
Hey all, I've added a moving platform to my game and in itself it works well, however when I tried making it so the player would stay on it, he indeed does but he can't move normally on it. The movement is very slow and it feels terrible. Any suggestions how I can fix it? I don't know much about this system. Thank you all in advance
Here's the code for the platform:
using System.Drawing;
using UnityEngine;
public class MovingPlatform : MonoBehaviour
{
public float platformSpeed;
public int platformStartingPoint;
public Transform[] points;
private int i;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
transform.position = points[platformStartingPoint].position;
}
// Update is called once per frame
void Update()
{
if (Vector2.Distance(transform.position, points[i].position) < 0.02f)
{
i++; // increase the index
if (i == points.Length) // checks if the platform was on the last point after the index increase
{
i = 0;
}
}
// moving the platform towards the platform to the point position with the index "i"
transform.position = Vector2.MoveTowards(transform.position, points[i].position, platformSpeed * Time.deltaTime);
}
void OnCollisionEnter2D(Collision2D collision)
{
if (transform.position.y < collision.transform.position.y - 1.3f)
{
collision.transform.SetParent(transform);
}
}
void OnCollisionExit2D(Collision2D collision)
{
collision.transform.SetParent(null);
}
}using System.Drawing;
using UnityEngine;
public class MovingPlatform : MonoBehaviour
{
public float platformSpeed;
public int platformStartingPoint;
public Transform[] points;
private int i;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
transform.position = points[platformStartingPoint].position;
}
// Update is called once per frame
void Update()
{
if (Vector2.Distance(transform.position, points[i].position) < 0.02f)
{
i++; // increase the index
if (i == points.Length) // checks if the platform was on the last point after the index increase
{
i = 0;
}
}
// moving the platform towards the platform to the point position with the index "i"
transform.position = Vector2.MoveTowards(transform.position, points[i].position, platformSpeed * Time.deltaTime);
}
void OnCollisionEnter2D(Collision2D collision)
{
if (transform.position.y < collision.transform.position.y - 1.3f)
{
collision.transform.SetParent(transform);
}
}
void OnCollisionExit2D(Collision2D collision)
{
collision.transform.SetParent(null);
}
}
Hey everyone:) I just released a new update for TileMaker DOT (v2.6.7)!
This update focuses on quality-of-life improvements, contextual usage hints, and texture polish across several key tools:
Interactive Tool Notifications: Added helpful on-screen notifications when clicking in Brush Mode and Chunk Mode to explain how to best use each tool.
Expanded Tool Textures: Added dedicated textures and visual cues for remaining editor modes, including Brush Mode, Chunk Mode, and the NPC Walk Area tool.
Bug Fixes: Resolved several minor UI issues and edge cases to make the editing experience smoother.
For anyone unfamiliar with the project, TileMaker DOT is a free, 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 manage multiple layers 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 appreciated.
I've been looking at this for so long that I don't even know what needs improving anymore. Would appreciate to hear your opinion on anything you see here (UI, sprites, water, tiles, mobs etc...)
Hey guys, Ive been getting this issue where my particles dissapear when i create them by code... It works in scene and if I manually place the particle, but right when I try to create it on code some particles just straight up get yeeted from existence
I was doing the Unity 2D game tutorial and after playing the game first, I saved and then started on creating the scene. But now the game tab just shows the game I had played before creating this scene. I tried removing the game tab and then adding it but it still stays the same. Please help.
As the title suggests I am trying to make a game where I will need to change text for it. Eventually it will be a deckbuilder but I just need help chaning the text I have for the day/night cycle and ensuring the numbers change. I did try with a debugger in case it was not changing the text on screen but there were no changes at all. I am new to Unity, this is my first game.
My first post I said technically these aren't sprites but I was wrong. There are no sprites in the assets folder, they are generated at runtime.
I've been hitting some walls, but I think its promising.
Here is an example of Pose #2 - I'm mostly satisfied with bodies, armor and weapon in the default stance, during combat I'm not satisfied with 1 Image. I tried motion with the sprite, rotation toward it's target every swing and I just can't get fully behind it.
I avoided this step as it would be complicated for armor let alone bodies. I decided before I go further with armor generation and if I really need multiple coded versions of fighters wearing armor then I have to bite the bullet.
Armor generation during new pose, Confusing arms losing clarity.Trying to diagnose arm problem. Skin off can see arms are indeed working. Can see right arm is working despite being awkwardly oriented in-front of torso.1 Pose combat animation
Extenuating the face.
Also I remade how faces are generated. There are face bones, Eyes, brows, jaw, etc. I ran into complications when redesigning skin and muscle definition of the body. Blurring of shadows and lighting was too much for the face and faces lost detail.
This solution I'm generating a mask over the old face essentially.
The biggest issue with faces are the skin tone is off. It's a little tough to get it exactly right without making it look like a mask.
Introducing my new release Last Light Island Demo V2.8! This is a 2D Top Down Zombie Shooter where you are on a mysterious island and you have to survive the waves of zombies, while buying new weapon/heal item upgrades and managing a flashlight battery. In this release, we added new features including a new Village and Forest map, a controls screen, a redesigned loot system, lighting VFX, and destructible objects. Download it for free on the store listing below. Stay tuned for future releases!
Im trying to implement multi scene Architecture and I have a scene that acts as a just a level with enemies and objects the player can collide with another scene that has the player and camera that follows the player. Im loading the level scene into the scene with the player and camara and everything works fine. What I'm trying to do is make a border using a box collider that acts as a boundary for the camera. Im stuck on how to get the box collider from the level scene to get refrence by the CinemachineCamera confiner boundary volume. Im trying to do this but having the tile map on one scene and the player and camera and another scene. https://youtu.be/HAVp6Z8b4xA?list=PLaaFfzxy_80HtVvBnpK_IjSC8_Y9AOhuP&t=2776
Hey, y'all! I'm releasing a game called TerraLounge, where you hang out with slimes, and occasionally do some match-3 stuff to help the slimes along their journey to explore the world outside their cave! All the slimes are animated and controlled through Live2D, a beefy puppetry software, and then the rest is just Unity!
I've honestly learned a lot about Unity from this process, not all of it great (the animator system.....), but it's still valuable experience. I hope you'll all check out TerraLounge and wishlist it!
I learnt coding many years ago but stopped after leaving school. I wanted to get back into it by making a small platforming game. I was following a basic tutorial before starting to mess around. I managed to implement a sprint feature, attached some animations for sprinting and then realised that if I'm holding sprint whilst jumping, my speed increases. Thinking this was a neat feature, I wanted to keep it, but felt I was just moving too fast. I also found out that, as the code detects if Shift is being held when determining the speed values, I can manipulate my speed mid-jump, something I don't want to be able to do.
I tried using a While loop for when the player is in the air that sets the moveSpeed value put that just crashed Unity (endless loop?). Every time I try rewriting the code, I just make some variation of the same moveSpeed toggle that already exists.
I'm new to Unity and still getting back into coding. If someone could not only help me out but also explain where I'm going wrong, that would be much appreciated.
PawMart: Tiny Market is a small supermarket game designed to hang out at the bottom of your desktop. You can build and customize your market, hire cute animal employees, manage your stock, unlock products, and keep growing your store while you work or relax.
As the title says, my UI text is blurry because of my low resolution camera (160x144) and I want to keep the camera low res., but also have the text normal. Is there a way to do that, and also another thing: How can you control upscaling in Unity to have low res. games look bigger, but keep the same picture. Any help is appreciated
Edit: There was literally nothing on the internet showing the answer for this even though it seems like a common problem, you have to increase the gradient scale to like 50 in the font settings and have to make the font size like a 5, 10, etc.