1. jakso lukuvuonna 2016-2017
This time
you’re going to make animated introduction in unity. This can be done in
several ways as everything else in Unity.
You’ll need
some animated frames for this assignment. Those can either be just a background
with some animated objects, full screened animation or just still pictures. It’s
up to you what method to use. This tutorial will work best on still and full screened animations.
For this
scene you’ll need one empty game object which will control the animation. In
the FSM create as many states as you have different animations and one extra
state for loading next level.
In the first state it's good idea to have camera fade in action. In this action you'll choose a color to start the fade in. Then over time the scene will be visible and start playing. In the example there is also wait for the first image to be visible and not changed right after the fade in has completed.
In the other states you need three actions. One action is wait. Choose time you want to wait
before moving to the next animated state. The time is approximately same as the
time that animation in that state takes. For example, if you have animation
that takes 1 second then select 1 for the wait action.
For the
next two actions you’re going to use set property. For the first one use set
property action and choose the object you want to deactivate. Select active for
the property and don’t put checkmark in the set value selection. Do the same
for the next animated object but now put in checkmark in the set value section.
In the last
state you’re going to use the load level action. This will load your game after
the animated intro is completed. Remember to write the name of the next level
correctly and add it to the build from build settings. You can also use camera fade out before loading new level so that the next level won't be just smacked at the players face but instead the last screen of the intro will be faded. It will be more pleasant experience for the player.
Ei kommentteja:
Lähetä kommentti