I’ve done the steps and removed my platform and re-added it and it refuses to move. I’ve even done as others suggest and added the BeginPlay() call
AMovingPlatform::AMovingPlatform()
{
PrimaryActorTick.bCanEverTick = true;
SetMobility(EComponentMobility::Movable);
}
void AMovingPlatform::Tick(float DeltaTime)
{
// Pass to base
Super::Tick(DeltaTime);
FVector location = GetActorLocation();
location += FVector(15 * DeltaTime, 0, 0);
SetActorLocation(location);
}
void AMovingPlatform::BeginPlay()
{
// Pass to base
Super::BeginPlay();
}