Scoring issue with Ring Rotating Game
I have a game where there is a rotating ring and the user presses spacebar to start and stop the ring.
If the user gets the white ball exactly between the yellow bars and the rotation of ring is exactly 0 degrees, he gets 3 points, but if the ring is not equal to 0, he loses 1 point. Here is a screenshot:
https://www.dropbox.com/s/ldimtsfpsa5u7as/Screen-Shot-2014-05-18-at-9.20.09-PM.png
Issue:
When I have a score of 0, I get 3 points and everything is fine. But if I have a score of 3 and hit the rotation right at 0, I only get 2 points instead of 3. Why? This is driving me crazy for 2 days. Here is my code.
https://www.dropbox.com/s/s6sitil14elisiz/Screen Shot 2014-05-22 at 11.22.34 PM.png
Basically, I am checking to see if
1) the game has started
2) the ring is rotating
3) the ring rotation is exactly 0
Can anybody shed some light. I feel like my nesting of rules is the issue.
Thank you in advance.
Comments
Closed rules, closed expression boxes with hidden calculations . . . not a lot anyone can do with that ! I think we'd need to see the rules to be able to help.
I don't know how to show the expression box besides hovering over it.
Here is a screenshot with rules open and my variables:
Variables:
https://www.dropbox.com/s/0uznlhiw987rt4o/Screen Shot 2014-05-23 at 12.15.50 AM.png
Rules 1:
https://www.dropbox.com/s/r1kb60s7tg90dgi/Screen Shot 2014-05-23 at 12.15.34 AM.png
Rules 2:
https://www.dropbox.com/s/mxlyfhexhbbdd34/Screen Shot 2014-05-23 at 12.16.11 AM.png