- Home /
2D Character getting a weapon. Changing it's sprites/animations
First of all, I'm a beginner, so I'm sorry if this question is too trivial. Anyways... Lets say I have a 2D Character, controlled by the player, without a weapon. If he gets a sword item then all of it's animations are changed, so now it's sprite has the sword attached to it's hand. I was thinking about doing it this way: In the same animator, I'd have Idle and IdleSword, Walk and WalkSword, etc. Then a transition from the first ones to the last ones, using a boolean Sword that's true if he gets the sword as a trigger. Is this the correct way of doing it? It seems to me that this could be optimized. How would you guys do this? Thanks.
Comment
I would say: Try this, if You won't like it, figure out another way