Can't Slow Object Down
Rattlehead
Member Posts: 485
Hi everyone,
I have a simple ball that bounces around my scene and when it collides with a power-up, it speeds up by increasing the value of a global variable. I have that part nailed down... when it collides with the power-up, the ball does speed up.
Where I have a problem is that I can't seem to slow it down. The global parameter that controls the balls speed is successfully being reset down to my base speed of 200 (I put the parameter into an on-screen text output so I could monitor it), but my rule inside the ball actor that monitors the decrease in the variable doesn't seem to be taking effect. I have it set to react to "Any" changes and the second check is just the inverse of my first one check to see if the global speed variable has changed.
I couldn't find anything during a search for a possible bug in the Change Velocity behaviour. Can anyone think of what I might be missing?
I have a simple ball that bounces around my scene and when it collides with a power-up, it speeds up by increasing the value of a global variable. I have that part nailed down... when it collides with the power-up, the ball does speed up.
Where I have a problem is that I can't seem to slow it down. The global parameter that controls the balls speed is successfully being reset down to my base speed of 200 (I put the parameter into an on-screen text output so I could monitor it), but my rule inside the ball actor that monitors the decrease in the variable doesn't seem to be taking effect. I have it set to react to "Any" changes and the second check is just the inverse of my first one check to see if the global speed variable has changed.
I couldn't find anything during a search for a possible bug in the Change Velocity behaviour. Can anyone think of what I might be missing?
Comments
When it collides with my power-up actor, I have the power-up actor change Current Ball Speed.
Back inside the ball actor I have a rule that states when Current Ball Speed is not equal to a local variable called Speed Check which is always set to 1. The idea was this internal variable would never change and therefore the rule would always be true and execute the rest of my rule which just runs another Change Velocity behavior.
But saying that, I just installed the latest change and now it's not increasing in speed any more either.
Back to the ol' drawing board I guess.
Many thanks Kamazar!