Search Unity

How to give animation to bricks

Discussion in '2D' started by kasana_94, Mar 28, 2016.

  1. kasana_94

    kasana_94

    Joined:
    Apr 13, 2014
    Posts:
    24
    Hello everyone,

    I am creating a simple brick breaker game in unity 2D. I can get the basic game running, but now i want to give animation to the bricks present in the level.

    Animations like bricks rotating, flipping at the same place.


    How to do it. Please guide me i am stuck with this issue.
     

    Attached Files:

    • 04.png
      04.png
      File size:
      162.9 KB
      Views:
      747
    Ideator likes this.
  2. Frostraver

    Frostraver

    Joined:
    Oct 26, 2012
    Posts:
    25
    One of the things you can try is create a simple animation for the bricks. You can use Unity's built-in timeline animation tool. You can find it in Window > Animation in the editor. So, create the animation using keyframes and save it as an animation file. Then, you can trigger that animation on a specific GameObject when you need it.