Platform not Moving

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

Are you sure it’s not moving? You’re moving by a tiny amount each frame. If you use 100 instead of 1 does it move at all?

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms