Moving Platforms with extra features

  • Multiple locations
  • Two looping options
  • Specify time it takes to get to the location

Also using a timeline is just how I made the moving platform to begin with; Having a curve that goes from 0 to 1 then back to 0 originally

Video:

Source:

MovingPlatform.h
MovingPlatform.cpp

2 Likes

Oh yeah, using timelines in c++ was a bit tricky, I recall, lol.

Nice job Dan! Thanks for sharing it with both video and code. This is a great base for others to work from.

1 Like

Yeah, I wouldn’t recommend doing it in C++. I just did it for the sake of doing it, and because I couldn’t be bothered to switch between VS and Unreal when coding the logic.

2 Likes

it is very powerful code but if it is possible for you add some comment to introduce some function,It will be so useful and help people a lot:heart_eyes::thinking:
thanks a lot

Privacy & Terms