HI! So. I’m currently trying to make it so that when I press the “RShift” key, my cursor changes Y position, but when I press it again, it switches back to the original. I’ve been able to get it to change to the desired Y position, but I’m struggling to find a way to make it switch back.
The only thing I can figure is utilizing a Boolean variable, but I don’t know enough about them to give it that functionality.
Here is my current code:
As always, any and all help would be appreciated!
EDIT: I’m not sure I explained it that well before, but essentially I want to make it so that pressing the RShift key moves the cursor down by a certain amount, then pressing it AGAIN moves it back to its original position, essentially making a closed circuit system that looks like this: