- Home /
Changing sprites with animations
So I have a question I'm trying to figure this out for a few days but can't seem to find the right answer. Lets say I have a character with rigidbody and colliders and an animator (2D) that has a few animations and the character is moving from left to right and teleporting back to the left side of the screen and whenever he does that I want it to change to another similar character that would need the same rigidbody and colliders and animations the only thing that it would have is a different appearance. What is the best way to do this? Create 2 or 3 game object similar to the first one and then somehow change which one is showing? How would I do that ?
You can change the sprites in the Sprite Renderer from the script. Have an array of sprites and change it when it comes to the left.
Your answer
Follow this Question
Related Questions
PLayer animation 0 Answers
Changing how my character looks depending on his current lifes. 2 Answers
2d sprite animation issue 2 Answers
Playing a different sprite prefab on collission. 1 Answer
How to swap sprites? 1 Answer