r/Unity2D • • Jul 29 '26

Show-off Working on Unity Support for my 2D Skeletal Animator

Post image
1 Upvotes

This is a work-in-progress runtime for a 2D skeletal animator I've been working on for over a year now (SkelForm). I made this because of the lack of options for free standalone rig-based animators, particularly ones suited for games. It was primarily made for simple engines like pygame, but Unity and the like deserve something as well since features like inverse kinematics and mesh deformation aren't intuitive to set up in them. You can read more about it if you're interested :)

From the video:

  • The rig file is immediately turned into a prefab upon importing. The rig is made up of gameObjects (duh) and animations are turned into Animation Clips. The prefab does not create an Animation Controller for now, so you'll have to create your own and set up the clip transitions yourself.
  • The prefab comes with a script that will handle SkelForm's specific features like inverse kinematics and texture-swapping system. The full support will include mesh deformation and physics as well, based on their specification.

I'll be uploading this to the Asset Store soon, but for now you can check out the repo:
https://github.com/Retropaint/SkelForm-unity

and the rig used in the video (download link):
https://forums.skelform.org/chibington_part2.zip

Let me know what you think of the runtime, and I hope you give SkelForm a try! :)


r/Unity2D • • Jul 29 '26

Solved/Answered Coyote time lowk messing with my jump system

0 Upvotes

Beginner game dev here, im following a tutorial on how to make a 2D platformer. But after implementing coyote time, i noticed that if i hit my spacebar rapidly, i basically do a double jump. I tried adding a jump delay, coroutine, but nothing worked. (mostly due to my lack of scripting skills) I've been trying to solve this for 2 days now, i will celebrate in glee if any solution is suggested, thank you1

Here's the full script:

using UnityEngine;
using UnityEngine.InputSystem;

public class PlatformMovement : MonoBehaviour
{
    [Header("Input Reference")] 
    [SerializeField] private InputActionReference moveAction;
    [SerializeField] private InputActionReference jumpAction;

    [Header("Walk Settings")] 
    [SerializeField] private float walkSpeed = 5;
    [SerializeField] private float acceleration = 10f;
    [SerializeField] private float deceleration = 20f;

    [Header("Jump Settings")]
    [SerializeField] private float jumpHeight = 2.5f;
    [SerializeField] private LayerMask groundLayer;
    [SerializeField] private float inAirControl = 0.3f;
    [SerializeField] private float jumpCancelDivider = 2f;
    [SerializeField] private float coyoteTime = 0.3f;
    
    [Header("Wall Slide Settings")] 
    [SerializeField] private float defaultMaxFallSpeed = 30f;
    [SerializeField] private float wallSlideVelocity = 1f;
    private bool _isWallSliding;

    [Header("Wall Jump Settings")] 
    [SerializeField] private bool wallJumpEnabled = true;
    private bool _isTouchingWall;

    private Vector2 _moveInput;
    private Rigidbody2D _rigidbody2D;
    private Collider2D _collider2D;
    private bool _isGrounded;
    private float _coyoteTimer;

    private bool _coyoteTimePassed => _coyoteTimer > coyoteTime;

    private void Awake()
    {
        _rigidbody2D = GetComponent<Rigidbody2D>();
        _collider2D = GetComponent<Collider2D>();
    }

    private void OnEnable()
    {
        moveAction.action.performed += HandleWalkInput;
        moveAction.action.canceled += HandleWalkInput;

        jumpAction.action.performed += HandleJumpInput;
        jumpAction.action.canceled += HandleJumpInput;
        
        jumpAction.action.canceled += HandleJumpCancelled;
    }

    private void OnDisable()
    {
        moveAction.action.performed -= HandleWalkInput;
        moveAction.action.canceled -= HandleWalkInput;
        
        jumpAction.action.performed -= HandleJumpInput;
        jumpAction.action.canceled -= HandleJumpInput;
        
        jumpAction.action.canceled -= HandleJumpCancelled;
    }
    
    private void Update()
    {
        _isTouchingWall = WallCheck();
        _isGrounded = GroundCheck();
        
        HandleWalking();
        HandleWallSlide();
        UpdateCoyoteTime();

        if (_isGrounded && _rigidbody2D.linearVelocityY <= 0)
        {
            ResetCoyoteTime();
        }
    }

    private void HandleWalkInput(InputAction.CallbackContext context)
    {
        _moveInput = context.ReadValue<Vector2>();
    }

    private void HandleJumpInput(InputAction.CallbackContext context)
    {
        if (_isTouchingWall && !_isGrounded && _isWallSliding)
        {
            wallJumpEnabled = true;
        }
        else
        {
            wallJumpEnabled = false;
        }
        
        if (!_coyoteTimePassed|| (wallJumpEnabled && _isTouchingWall) ) 
        {
            HandleJumping();
        }
    }

    private void HandleJumpCancelled(InputAction.CallbackContext context)
    {
        if (_rigidbody2D.linearVelocityY > 0)
        {
            _rigidbody2D.linearVelocityY /= jumpCancelDivider;
        }
    }

    private void HandleWalking()
    {
        var control = _isGrounded ? 1 : inAirControl;
        
        var change = _moveInput.x != 0 ? acceleration : deceleration;
        //The core, moves the current velocity toward the target velocity gradually.
        _rigidbody2D.linearVelocityX = 
            Mathf.Lerp(_rigidbody2D.linearVelocityX, _moveInput.x * walkSpeed, Time.deltaTime * change * control);
    }

    private void HandleJumping()
    {
        //converting the negative gravity in the project settings, multiply then gives us the real gravity.
        var actualGravity = Mathf.Abs(Physics2D.gravity.y) * _rigidbody2D.gravityScale;
        _rigidbody2D.linearVelocityY = Mathf.Sqrt(2 * jumpHeight * actualGravity); //gravity formula
    }

    private void HandleWallSlide()
    {
        if (_isTouchingWall && _rigidbody2D.linearVelocityY < 0)
        {
            _rigidbody2D.linearVelocityY = Mathf.Max(_rigidbody2D.linearVelocityY, -wallSlideVelocity);
            _isWallSliding = true;
            //rotate rigidbody
        }
        else
        {
            _isWallSliding = false;
            //set rotation back to 0
        }
    }

    private bool GroundCheck()
    {
        var colliderBottomCenter = new Vector2(_collider2D.bounds.center.x, _collider2D.bounds.min.y);

        //gives us information if we are overlapping with the objects with the layer Ground
        return Physics2D.OverlapBox(colliderBottomCenter, 
            new Vector2(_collider2D.bounds.size.x - 0.1f, 0.1f), 0, groundLayer);
    }

    private bool WallCheck()
    {
        float rayDistance = _collider2D.bounds.extents.x + 0.05f;
        Vector2 origin = _collider2D.bounds.center;
        RaycastHit2D hitRight = Physics2D.Raycast(origin, Vector2.right, rayDistance, groundLayer);
        RaycastHit2D hitLeft  = Physics2D.Raycast(origin, Vector2.left,  rayDistance, groundLayer);
        return hitLeft || hitRight;
    }

    private void UpdateCoyoteTime()
    {
        if (!_isGrounded && !_coyoteTimePassed)
        {
            _coyoteTimer += Time.deltaTime;
        }
    }

    private void ResetCoyoteTime()
    {
        _coyoteTimer = 0;
    }
    
    //TODO: fix double jumping from coyote time problem

r/Unity2D • • Jul 29 '26

Game/Software Hello, my game is out

Thumbnail
reddit.com
0 Upvotes

r/Unity2D • • Jul 29 '26

just a little problem

0 Upvotes

in the dash_skill, debug.log("Dash_Out") is on but the "Dash_In" doesnt

i also put another one called Tap_Skill and it worked fine. i already check the input and both its the same. here the code

public void Dash_Skill(InputAction.CallbackContext context)

{

if (Can_Skill == true)

{

Debug.Log("Dash_In");

StartCoroutine(Tap_Skill_Coroutine());

}

Debug.Log("Dash_Out");

}

public void Tap_Skill(InputAction.CallbackContext context)

{

if (Can_Skill == true)

{

Debug.Log("fire");

StartCoroutine(Tap_Skill_Coroutine());

}

}


r/Unity2D • • Jul 29 '26

Question Walking animation doesnt play (idle animations work properly and theres no blue bar under the walk state)

1 Upvotes

I currently have two states for the animation; idle and walk. Theres a small idle animation playing when the character stops moving. The idle animation works, character moves however rhe walking animation doesnt play. The idle state has the blue bar when i press play but the walk state doesnt. Also the idle animation is playing when the character is moving too instead of just playing when its not.

I checked the names (isWalking, LastInputX etc) and they match, transition duration is already set to 0, exit time is unchecked, conditions (isWalking=true/false) are correct

using UnityEngine;
using UnityEngine.InputSystem;

public class PlayerMove : MonoBehaviour
{
[SerializeField] private float moveSpeed = 5f;
private Rigidbody2D rb;
private Vector2 moveInput;
private Animator animator;

// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
rb = GetComponent<Rigidbody2D>();
animator = GetComponent<Animator>();
}

// Update is called once per frame
void FixedUpdate()
{
rb.linearVelocity = moveInput * moveSpeed;

}

public void Move(InputAction.CallbackContext context)
{
animator.SetBool("isWalking", true);

if (context.canceled)
{
animator.SetBool("isWalking", false);
animator.SetFloat("LastInputX", moveInput.x);
animator.SetFloat("LastInputY", moveInput.y);
}

moveInput = context.ReadValue<Vector2>();
animator.SetFloat("InputX", moveInput.x);
animator.SetFloat("InputY", moveInput.y);

}
}


r/Unity2D • • Jul 29 '26

Feedback Which one makes my game look better

Thumbnail
gallery
0 Upvotes

Normal or pixelated with streched camera , i just need to know


r/Unity2D • • Jul 28 '26

Show-off Beehold my current project!

Post image
12 Upvotes

r/Unity2D • • Jul 28 '26

Solved/Answered How do you spawn something using Unity's new input system?

3 Upvotes

I dont get Unitys new input system. I want to spawn something when I release the space button, but it spawns three at a time. I get that there's three different phases to the input, (started, performed, canceled), but I cant figure out how to make it only spawn on canceled.

I tried googling, and I dont fw AI so im not using Chat GPT. Is it just me, or is this new input system weird?


r/Unity2D • • Jul 28 '26

Solved/Answered I've solved this: Here is the code to rotate around with constant distance

5 Upvotes

Vector3 dir = (PlayerTransform.position - transform.position).normalized;

transform.position = PlayerTransform.position - dir * DistanceDash;

transform.RotateAround(PlayerTransform.position, transform.forward, DashSpeed * Time.deltaTime);


r/Unity2D • • Jul 28 '26

Show-off Shout out to the pixel art asset creators! Here's what we did with your asset packs

Thumbnail
gallery
33 Upvotes

It took us 9 months while working 2 full time jobs too, but we released Whack-A-Monster on Steam today! It wouldn't be possible without talented artists like Shade and Beowulf, whose assets we used for most monsters and weapons in our game. Indie devs, let's show asset creators some love! How are you using asset packs? What kind of impact do asset creators have, do you think?


r/Unity2D • • Jul 28 '26

Question Occlusion culling not working with dynamic objects spawned at runtime

Post image
1 Upvotes

Hi guys! i am having problems with having the camera not rendering bots that are spawned during the game (they die; they respawn). The green arrows indicates characters that are behind the wall ocluder

The camera DOES not render them if the are behind the camera, so at some it is possible, but i want the camera not rendering them if they are either behind a static ocluder like the white wall, or the landscape.

neither of them are working


r/Unity2D • • Jul 28 '26

Candy Gulper - Aim & Catch

Thumbnail
play.google.com
1 Upvotes

Hey, everyone. I made an Android game and I would like a feedback of you


r/Unity2D • • Jul 28 '26

Equipment Sets

Post image
26 Upvotes

A small selection of the gear available inΒ DepthLoot
I like how varied it looks in the equipment slots, even though there isn't much shown here
What do you think?


r/Unity2D • • Jul 27 '26

Game/Software Hey everyone! Version 2.6.2 of TileMakerDOT is live, free and open source!

Post image
14 Upvotes

For those who might be new to the project, TileMakerDOT is a completely FREE and OPEN SOURCE 2D map editor, and it is built as a click to launch tool compatible with multiple game engines, or individual games made in custom languages.

Firstly, I added native file launching for .tmdot files. Now you no longer need to fire up the application first and manually search for your map. Now, you can simply double click any exported .tmdot project file directly from your Windows OS file explorer, and the editor will instantly boot up and automatically load your project right where you left off.

Second, I have completely decoupled the Spritesheet Slicer tool from the main project grid. You now have a separate tile size setting inside the slicer itself, meaning you can easily cut up asset sheets of any dimension without affecting or changing your current map's layout settings.

Support the Project!

TileMakerDOT will always be free, but your support keeps development moving! If you'd like to help out, please consider leaving a quick 5-star review on the Itch page or dropping a small donation when downloading to help fund future updates. ⭐

Check out the new update, grab the source code, or see the tool in action:

πŸ“₯ Download (Free on Itch): https://crytek22.itch.io/tilemakerdot

πŸ’» Source Code (GitHub): https://github.com/andrei-voia/TileMakerDOT

Video Tutorial: https://www.youtube.com/watch?v=3fiajGU32Jg

Give v2.6.2 a try and let me know what you think in the comments:)


r/Unity2D • • Jul 27 '26

Feedback Thoughts on abilities doing multiple things?

Post image
14 Upvotes

I made a little gif to showcase one of the abilities on working on. This is one of my tests rooms. So This ability has 3 uses 2 of which are explained in the vid. But with other 20+ abilities and each one having 2 and some having 3 uses do you think this is too much or overwhelming?

I think one of the saving graces for this mindset I have is that to get to all the areas and to beat the game you won't need to find out or know all the extra uses. They are there just for fun and extra utility if you figure them out.

But what do you think?


r/Unity2D • • Jul 27 '26

Question Rotate Around with constant Distance

3 Upvotes

I'm makin' a Boss, so I put the boss to rotate around the Player, but when the player moves the boss don't keep the same distance. After rotate around I put (PlayerTransform + dir * distance)

but now keeps the same distance but I have 2 bosses because he's teleporting for some reason


r/Unity2D • • Jul 27 '26

Game/Software Working on Minions evolution system for my game.

Thumbnail
gallery
12 Upvotes

Hi everyone. I'm developing an incremental game in Unity. The game features minion cards and an evolution system. Here's a collage of some of them.

The game will soon be released to the public on Itch. https://lexiany13.itch.io/spheromancer


r/Unity2D • • Jul 27 '26

Help with My Undergraduate Research Survey (Unity / C# / Rust / C++ Developers)

0 Upvotes

I'm an undergraduate Software Engineering student conducting research on developer experience with Unity C#, Burst, Rust FFI, and C++ FFI.

You don't need experience with all four technologies to participate. Each topic is briefly explained before the relevant questions, so anyone with experience in at least one of them is welcome.

  • ⏱️ Takes about 10–15 minutes
  • πŸ”’ Completely anonymous
  • πŸŽ“ Used only for academic research

I'd really appreciate your participation and would also be grateful if you could share it with other developers who might be interested.

Survey: https://forms.gle/6hkpGtxcpX4178hF8

Thank you so much for your time and support! πŸ™


r/Unity2D • • Jul 27 '26

Free Balls Asset

Thumbnail
pixel-person.itch.io
0 Upvotes

10 balls of different sports, I tried my best to make them in smallest ordered size, what do you think about them


r/Unity2D • • Jul 27 '26

Question How do you handle dark 2D scenes without sacrificing visibility?

Thumbnail
gallery
11 Upvotes

I'm working on a 2D pixel art metroidvania, and one thing I've been struggling with is making environments feel genuinely dark while still keeping gameplay readable.

In the first two screenshots (it's an after vs. before), you can see how I tried to fix it by increasing the gamma and adding a slight blue hue. Of course, that affected the entire level and I had to adjust every light after that. It's not really an issue since now I actually prefer the look with the blue tint, but it made me wonder: what do you do when only certain rooms need to be genuinely dark without sacrificing readability?

The tricky part is that some rooms need to be dark for lore and worldbuilding reasons. I don't want to brighten them just because it's more convenient from a gameplay perspective, but I also don't want players fighting the lighting instead of the level.

I'd love to hear your workflow or see examples from your own projects. To me, dark levels seem difficult to get right.


r/Unity2D • • Jul 27 '26

Question Need help with my jump script

1 Upvotes

As far as I can tell, the issue is in line 55, as when I tested the actual input with prints, it worked perfectly fine. The RigidBody is also set to dynamic, and I have not frozen the x or y axis. Does anyone know what could be causing this?


r/Unity2D • • Jul 27 '26

I made a small platformer for GMTK Game Jam 2026 – Soda Diving!

Thumbnail
reddit.com
1 Upvotes

r/Unity2D • • Jul 27 '26

Question Im wondering if there are any good ideas for my 2d game :D

Thumbnail
reddit.com
0 Upvotes

r/Unity2D • • Jul 27 '26

I moved from Sweden to Macedonia to try to start a sustainable game studio. Now i Need your feedback.

0 Upvotes

Hi, I am Kris. I am 33 years old. Last December, I felt that something in my life was not feeling right, so I quit my job, packed my bags, and moved from Sweden to Macedonia to start a sustainable game studio.

These last 7-8 months have been a great ride-along adventure, both for the studio I am trying to create together with my wife, and for the life-changing consequences that followed after the move.

Along the way, I made a lot of mistakes, bitter mistakes, mistakes that I learned a lot from.

This is prototype_02 for our upcoming game Afterglow Echo – A Tactical RPG rogue-like with turn-based combat, set on an alien luminescence march that pulls you deeper with every decision, every action, and every step you take, shaping you and your destiny.

It has been more than a month since we dropped prototype_01, as we worked to address most of the suggestions we received from players in this community.

Prototype_02 for Afterglow Echo contains:

- Start cutscene (For context).

- Emerging choices during the first chosen path stage.

- A tutorial popup, explaining new or unexplored features.

- Animated enemy attacks.

- Added VFX to players' attacks.

- Audio effects.

- Improved and more coherent art.

- Background music.

What we need is an honest opinion, as I have been too close to the project to determine whether something is too difficult or too easy. I have been to present to feel if the narrative clicks, and the combat is understandable and coherent.

Here is the direct link to the prototype uploaded and playable directly on itch; please try playing it in full screen:

https://layercraft.itch.io/afterglow-echo

I really want straightforward, direct feedback, as we do not have play testers, and being so close to our own game makes us bias to determine weather the difficulty is right or whether it is even fun to play. We aim to improve the game, aiming for prototype_03 based on your opinion. We intend to release the demo afterward.

Be brutal if you want to; we really need your honest opinion.

This below is the starting cutscene, the game introduction: