Suggestion - Moving platform iteration

Hello,

I would like to point out a small suggestion for this lecture.
I think it is rather neccessary to add a check for the NULL pointer when iterating through the PlatformsToTrigger TArray.

This is my code:

for (AMovingPlatform* Iterator : PlatformsToTrigger)
{
    if (Iterator)
    {
        Iterator->RemoveActiveTrigger();
    }
}

Kind regards,
Alex.

Yes, that makes sense.

I’ve thought of another suggestion to expand on moving platforms: by adding additional EditWidgets to MovingPlatform.h, it should be possible to send a platform to multiple destinations, or redirect it along a fixed track.

1 Like

Privacy & Terms