I have used the ‘Set Duration’ node
but it does not seem to override the
original time I set in the details
panel.
if you read Duration after setting it, you’ll see that it is, indeed, set to the new value. I never fully understood how to work with InterpToMovement’s duration. The component is one giant quirk. This works, though:
I was hoping for some help with an issue I am having. I am using a scrolling background controlled by InterpToMovement. This works perfectly well.
However, I was considering controlling the speed of the movement in the Blueprint so I could adjust this ‘on the fly’. This is where I have fallen over.
I have used the ‘Set Duration’ node but it does not seem to override the original time I set in the details panel.
Any help would be appreciated… hopefully, I have just overlooked something simple and have not just completely missed how this could/should work.
My advice would be to not use the “interp to movement” component at all but instead use “finterp to constant” or “vinterp to constant” and have a variable drive the interp speed.
Generally speaking, a much more flexible method is to rely on a Timeline+Lerp; if you need a bit more automation and not that much control, this could be handy:
vInterpTo can be used in a pinch - although this is the weakest solution. Kind of depends on the end goal, though.
After reading the cpp header, there seems to be a couple of inconsistencies. It seems that the component is actually using a spline internally - so I’ve learnt something today, too!
Btw, using a Spline + Timeline would be another great method of moving things! Quite visual, too.
I will stick to what I have for now as I can now control the speed via a variable (these are for background elements) but look into other options for where more control is needed, especially moving in the foreground.