basically using a timeline to lerp 0 - 10 but when I hit the space key to stop on a number. it sets to false alright and it it seems to be on diceNumber number. but the numbers keeps lerping and going and going and wont stop even though the flow is stopped.
Any one know why ?
Maybe try removing the first branch on Stop Roll - change the default value to false and have the spacebar set it to true and change the last branch to false? Also it looks like you will get the number 10 over 90% of the time, you could make the Lerp between 0 and 10 and remove the >10 part unless that is what you are wanting to do…
Well - at least this is great practice for you to visualize the flow of the code Can you attach a screenshot of what you have now? Did you change the Lerp to be between 0 and 10?
Plug the Timeline Stop pin into the space bar event, I hadn’t noticed you had removed it. Then it should stop playing the timeline when you press the spacebar, will go to the “Finished” out pin and because you’ve set StopRoll to true it will not restart the timeline.
I just tried throwing together a quick blueprint to make sure it wasn’t a UE5 thing and it does seem to work but I didn’t make widgets, so that could mean it is the them causing the issues…
A Lerp is fine, I just added a random number generator too in that blueprint… Depending on the values from the timeline that is - if they are between 0 and 1 then it’s all good.