I have 2 buttons (buttonIncrease and buttonDecrease). I also have two switches. When the switches are clicked on, one movie clip symbols visibility becomes false while the other visibility becomes true to get the "on and off" effect.
Not sure what you're asking. The first part you reference a simulated on/off switch, the second part you're asking for an if statement that matches the if statement you provided. If you want to check the rotation and the visibility of two object, then you're if statement is correct.
Am I missing something?
Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.
so pretty much if 2 switches are visible and the gauge is in the 30 degrees position i want the gauge to start rotating CW.
for example, if my 2 switches are visible and i press the buttonDecrease and the gauge decreases CCW, once it hits that 30 degrees mark it will automatically start going CW because the 2 switches are visible and, like i said, the gauge is 30 degrees.
hey never mind it works lol.. but there is one problem..
when the gauge reaches the 30 degrees mark, the gauge itself starts to kinda vibrate lol.. like it tries to go CW but its still being pushed CCW. its probaby like one little piece of code :P
I have seemed to fix the vibration problem. Now it just wont increase. It hits the 30 mark and stays there. Is there any other bit of code to fix it? or something i can try?
the rotation stops at 30 because of the if statement BUT while its increasing by 1 like its told to do, the else statement at the end where it wants to -1 interfers and it creates this vibration because its like fighting to increase and decrease at the same time.
now when the gauge (which is moving CCW) hits the 30 mark and auto select and reciever drain are true, the gauge should automatically start moving CW.
the problem is is when the gauge hits the 30 mark and auto select and reciever drain are true, the gauge stops at 30 and it tries to go CW (which the else if statement states) but the else statment at the end is telling it to go CCW so it kind of fights itself and creats a vibration kinda thing.
i just want the gauge to go CW when gauge is at 30 and the objects visibility are true.