March 2019
Intermediate to advanced
708 pages
17h 9m
English
protected: // Called when the game starts or when spawned virtual void BeginPlay() override; // The movement from the previous frame FVector2D lastInput;
// Sets default valuesAWarrior::AWarrior(){ // Set this character to call Tick() every frame. You can turn // this off to improve performance if you don't need it. PrimaryActorTick.bCanEverTick = true; lastInput = FVector2D::ZeroVector;}
void AWarrior::Forward(float amount){ // We use a += of the amount added so that when the other // function modifying .Y (::Back()) ...Read now
Unlock full access