This is an old revision of the document!


2D Animations and Interactions

2D animations in Unity

In Unity (current version) we have two possibilities to make 2D animations: sprite-sheet si bone-based.

In the first image, the character is presented in several positions, with a sequence of positions for different actions. This image represents a sprite-sheet, being very popular in 2D games. This allows you to clearly imagine how the game will move.

In the second image, the dragon is divided into several parts of the body (head, body, arms and so on), requiring a newer 2D animation technique, commonly called bone-based animation. As the name suggests, the animation will be bone-based, in which each bone in the body can have a specific action or animation. With all the main body parts separate, it allows developers to create animations directly in the editor. This new animation technique is very similar to the one used in 3D animation.

Resources

Tasks

Making a 2D scroller game

  • Configure scenes for 2D
  • Add to the scene an image that represents the game background (animated)
  • Add an animated character to the scene:
    • it can be controlled from the keyboard
    • shoots projectiles at enemies
    • animated in several states (minimum 3)
    • has a score that increases when killing enemies
  • Add at least two types of enemies animated by different techniques
    • destroyed on collision with the player's projectile
    • destroyed collision with the player
    • generated dynamically, at random positions and they move continuously
pjv/laboratoare/en/03.1571831299.txt.gz ยท Last modified: 2019/10/23 14:48 by alexandru.gradinaru
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0