18 Game Development and Simulation with Unreal Technology
FIGURE 1.14: A View of the Pr oject Based on Si de Scroller Template i n UE4.
it a name, and click Creat e Project in the lower right c orner (Figure 1.13).
Remember to leave the Include Starter Content selected to have the UE4
include starter contents into your project.
When the project is launch ed, you will see the example map that come s with
the side scroller tem plate. This map is designed as a platformer test map for you
to use the default side scroller character. The map is fairly large; however, the
character is only ab le to traverse left an d right from the starting position. If you
click play, you will notice that movement is only possible o n the Y and Z axes
and not the X axis.
What Happened in TUTORIAL 1.4. . .
At this point, we have successfully created a pr oject in UE4 using the side
scroller blueprint template. Let us ta ke a closer look at the MyCharacter
blueprint of this template to be tter un derstand what makes it tick.
To view the logic that gives the character movement, we must again look at
the MyCharacter blueprint. This can be accessed by locating the Con tent
Browser in the lower left corner and clicking Blueprints-> MyCharacter.
Once the MyCharacter blueprint is open, you w ill see a very simple event graph
for th e character (Figure 1.15).
In fact, this event graph only has 3 events in it, InputAxis->MoveRight,
InputAction->Jump and InputTouch . In order to move left, the character is
technically moving in a negative direction r elative to a right movement. This
means we only need one event for the Y-axis movement. The jump event simply
calls the Jump function when the spaceba r is pressed.
If you click on the Components tab in the top right corner, y ou will see the
physical components that make up the side scroller character (Figure 1.16). This
character is similar to the third-person character except for the camera setup. In