Schrödingers Timeline: works/doesn't work at the same time [ Solved ]
I wanted to make the ball in my game to go through a rainbow of colors. I use a material parameter collection and one parameter is in the ball_material in use. I change the value with a Timeline that last 6 seconds. The Timeline goes through all the colors and applys an effect to the ball once and reverts it after it's finished.
My problem is that it doesnt work every time. I bound the P Key to the Timeline to Play from Start and after some testing, It does work sometimes and sometimes it doesn't.
The effect applied works everytime but not the color change. Sometimes it works the whole game session. Sometimes it only works at the start once. Sometimes it works after some time passes.
It doesn't matter if the key is held down or pressed rapidly. Held down doesnt do anything but pressed rapidly makes it start from the beginning rapidly, but only in cases where it works.
I have tried to google my way to a solution but at this point I just have no clue. Pls help.
I don't have much expirience but I had alot of problems with timelines not working.' The DoOnce was put there so I could make sure, in case the timeline doesn't start, the Collision Type wouldn't be changed, but I didn't want the timeline in case it works to set the collision type multiple times. With the DoOnce, if the timeline worked, the collisiontype would be changed once.
Also, I found the problem. In the same Ball_Pawn Blueprint was another timeline ticking, changing the color in another way. I actually set up a stop in case of a powerup but forgot it completely. Explains why it somewhat worked but didn't change color.
Hope I didn't waste much of your time. Coming back here removing the DoOnce made me realize it, so thanks!
Follow this question
Once you sign in you will be able to subscribe for any updates here