Uh, what is happening, variable failure?
Posted: Wed Jan 19, 2011 6:55 pm
Now, if I'm not mistaken, it should work when you press Down..... but uh, somehow the variable TM is interfering with it... Im tyring to make a menu controlled by the joystick but uh, that for some reason doesn't work... My code:
When that code is placed, it doesnt move at all O__o I thought okay, maybe the TM variable is setting its self to 1, but turns out no, its actually 0... but when I make it this:
it works perfectly fine.. BUT! it constantly moves the selector. Which I understand that because they'res a constant repeat.
But uh, HOW DOES TM INTERFERE WITH IT LOL
- Code: Select all
if (YAXIS>2000) {
if (TM==0) {
y+=32;
TM=1; }
}
if (YAXIS<-2000) {
if (TM==0) {
y-=32;
TM=1; }
}
}
When that code is placed, it doesnt move at all O__o I thought okay, maybe the TM variable is setting its self to 1, but turns out no, its actually 0... but when I make it this:
- Code: Select all
if (YAXIS>2000) {
y+=32;
}
if (YAXIS<-2000) {
y-=32;
}
}
it works perfectly fine.. BUT! it constantly moves the selector. Which I understand that because they'res a constant repeat.
But uh, HOW DOES TM INTERFERE WITH IT LOL