Problem with changing parameter in dynamic material

I want a simple slider to affect the rate of a flipbook I have made.

Here is the material

I set a dynamic material in the widget depending on which instance to use

And finally the bit to change the TimeMult

I don’t know where I have gone wrong but it doesn’t actually do anything in game, although it prints the TimeMult correctly as you change the slider. Please help me fix this thanks :slight_smile:

What is this material assigned to?

I suspect the issue, as mentioned above is that you haven’t assigned material after creating dynamic instance.
It exists, the parameter changes, but it has no effect.
You need a set material node, and set it to the object you need, right after instance creation.

Have you tried used TimeWithSpeedVariable? The only problem is that changing the speed in-game can have the animation reverse for a brief moment.

Ah yes, that was it! I included a screenshot if it helps anyone else.

I added TimeWithSpeedVariable, but is there anyway to overcome the animation reversal when you change the values?