Rollover buttons
in
Programming Questions
•
3 years ago
I have a series of rollover buttons arranged in a ring. The ring can be moved around the screen, but wherever it is, the actual spots that trigger the rollover-effect are always stuck in one place.
the applet can be found here: here. It's easy to see the problem, but confusing for a beginner to work out how to solve.
I think it is connected to the way I am moving my object (the ring of buttons) using translate(), because its screen location (0, 0) moves around when dragged with the mouse.
- can anyone suggest a way to make both parts of the buttons line up?
- or even a way to find out the 'real' x & y for my object when it thinks it is at (0, 0) but has been translated?
Thanks! L.
2