Search Unity

How to animate a change of sprite?

Discussion in '2D' started by unity_JW4EMqaGbk4dcg, Feb 7, 2019.

  1. unity_JW4EMqaGbk4dcg

    unity_JW4EMqaGbk4dcg

    Joined:
    Feb 7, 2019
    Posts:
    1
    Hi guys, im really new in Unity2D and I'm making a videogame for Android. I have a character sprite working but i need to animate with my character pick another piece of the body (My character is a flower that have 3 petals) When she picks one petal, one light appears covering the actual sprite and then the light disappear showing the sprite with 2 petals. I will post some pics of my actual character with her 3 states.

    Thansk a LOT.

    PlantaOk1.png Sin título-1.png
     
  2. Primoz56

    Primoz56

    Joined:
    May 9, 2018
    Posts:
    369
    you can use the built in animator tool for animations, plenty of tutorials on how to use it

    if its just replacing the image, you can edit the SpriteRenderer.sprite with the new sprite