Download

"On Clicked" Events can't be pressed down? Used the events to the right

Hey everybody!

I have this knob that changes colors when my mouse is over it and I would also like to add a rotation to it when holding the left mouse button down. I have managed to make it so that every time you click it rotates 90 degrees but I would like to make it so that when the mouse button is pressed the knob is continuously rotating. However, I am having trouble getting the event to even register that my mouse button is pushed down and not released yet. Anyone have any idea how to solve this?

Here’s what I got now:

Try using a loop to update the knobs rotation and branch to exit the loop when the ‘On Released’ event is triggered. Just make sure to have a small delay in the loop (like .02) so that you don’t get an infinite loop warning.