Creating the Character
Alright, it's time to create our character. Start by creating the code files for the character. Open the C++ class wizard (navigate to File | New C++ Class…). Choose Character for the base class and name this new class BountyDashCharacter
. This will create a new class of type ABountyDashCharacter
that publically inherits from UCharacter
. This character will need to be able to navigate between three lanes of incoming objects and coins. It will need to be able to jump and run while playing the corresponding animations. Finally, it should also include a camera that we can use as the main game camera.
What we have been given
As it was with the AHelloSphere
object we created with the class wizard, some default functionality has been provided with the ACharacter
base class in mind. Navigate to BountyDashCharacter.h
now, and observer the following code:
UCLASS() class BOUNTYDASH_API ABountyDashCharacter: public ACharacter { GENERATED_BODY() public: // Sets default...