Game Development Reference
In-Depth Information
This is our group setup that shows the control points that define the boundary for our
group. You can see our ship group shape with eight ships has been created.
Creating a group object was really easy with Fame. Now, we need to set up a way for
our crowd to move. We will have the ships move across the plane to a target point.
Set the Z scale of the plane to a larger value, create a sphere object to be our target
position, and place it across the plane. The screen should look as follows:
You can see a group of ships with a target placed.
When we send the group, or flock, the command to move to the target location, it will
move the position of the flock to match it, which isn't necessarily the center of the
flock. In this demo, the center of the flock is the upper-left corner from the camera
view, which is why the target sphere is offset to the upper-left corner.
Now that we have a target element in the scene, we need to give Fame a command
to move the group to it. Fame supports path following, but as most of the time we
will want our groups to move dynamically, such as chasing a player, we will look at
how to move the crowd by code. We have a lot of ways to set up a script to control
Search WWH ::




Custom Search