PLEASE IGNORE
I solved it by using flags right after I posted this. How embarassing! I guess alterable values are finicky for this situation so the switch to flags worked!
Hello,
I've had this problem before, but unfortunately the solution this forum gave me only works for a toggle. So here it goes again.
I have a menu, and when you press 'W', I need the selector box to go up ONE spot, not more than that. Here's a diagram of our example:
0
1
*2
And the buggy code:
Presses W
+ location value is 2 (using an alterable value to track)
=position cursor at 1 & set location value to 1
Presses W
+ location value is 1
= position cursor at 0 & set location value to 0
So what happens is it triggers the first code as true, but instead of stopping, the first code actually makes the second piece of code true also, so it processes that also. The result is a cursor that jumps up two spaces, instead of one, when you press W.
I can not figure out how to fix this. I've tried using a secondary alt value to set to 1 when you press w, and making sure that that value is 0 when w is pressed. then at the end of everything setting the alt value back to 0, but it still doesn't work.
Any help with this will be greatly appreciated. It's been a constant pain in my side. Anything I try ends up in the same spot where the second set of code always triggers because the first set always results in triggering the second set.