Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

2D pixel top down problem

Discussion in '2D' started by AlanGreyjoy, Jan 30, 2017.

  1. AlanGreyjoy

    AlanGreyjoy

    Joined:
    Jul 25, 2014
    Posts:
    192
    So I have hit a road block and I can't seem to figure it out.

    I am making a top down pixel 2d game. Sort of like A Link To The Past.

    I am using a sprite sheet for animations, which works great.

    But now I hit a problem.

    How would I do armor and weapon swaps with this type of game? (top down)

    Could I use anima2D to make a 2D skeleton, then attach weapons to the bone slots?
    But then how would I handle 4 different walking directions? Can you swap out sprites during direction change to make it appear like I changed walking directions?

    Any advice would be very helpful.
     
  2. LiterallyJeff

    LiterallyJeff

    Joined:
    Jan 21, 2015
    Posts:
    2,807
    Yes, what you've described is a common method of animating 2D characters with equippables. You could actually build your 2D skeleton just using the Unity Hierarchy, and you could use the Animator states to move those 'bones' and potentially change their sorting order if need be.
     
    theANMATOR2b likes this.