Game Development Reference
In-Depth Information
Nothing spectacular, but once it's animated, it will look awesome! Let's start
animating this scene. Let's double-click on our Kevin actor, then click on the big lock
to edit the behaviors of this actor. By doing this, we edit only this actor, not the main
actor in the
Inspector
panel. This allows us to use the same actor over and over, and
give each one separate behaviors without making changes to the main actor.
Don't forget to download all the supplied resources for the
topic and drag them into your library so you can follow
along. Now we are going to make him move. Under
Library
|
Behaviors
, scroll down to
Timer
, then click and drag the
behavior into the behavior section.
Now click the
Every
drop down, and change it to
For
. We are going to leave the
seconds
at
5
. Now scroll down and find the
Move
behavior. When you find it, drag
and drop it into the
Timer
behavior. Change the
Speed
to
85
. You may need to test this
for yourself depending on where you want him to end up. You can slow him down
and increase the timer, or vice versa. It all depends on how you want the scene to look.
You can drag in almost any behavior into a timer. There's a lot
of flexibility here because you can have the behavior run for a
certain amount of time, have it run every set amount of time, or
have it run after a certain time.