I am trying to set the duration of an InterpToMovement in my Blueprint but it does not seem to pick up the new setting over the original setting. Have I missed something obvious?

Have I missed something obvious?

No.

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:

Hi,

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.

Thanks in advance.

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:

335299-screenshot-1.png

  • 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.

Thanks, I am just looking into these now.

Nice to try something new.

It definitely seems a bit quirky.

The solution you suggested lets me have the required control over speed but the Set Duration doesn’t seem to match up.

Tinkering with the 1.0 Divided by Float helped me get a lot closer, changing this to 20/Float seemed to get it pretty close visually.

Thank you for posting a workable solution and taking the time to create a screengrab 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.