Platform not moving when I finish the lesson. I compile and it says its good but when I press play it doesn’t move it just stays still. I went through the lesson again and again but don’t know the problem. Please help!!!
Here’s My Code.
// Move platform forwards
// Get current location
FVector CurrentLocation = GetActorLocation();
// Add vector to that location
CurrentLocation.X = CurrentLocation.X + 1;
// Set the location
SetActorLocation(CurrentLocation);
// Send platform back if gone too far
// Check how far we’ve moved
//Reverse direction of motion if gone too far