I'm toying around with hotspots, and I managed to get a button working just fine.
Then I decided I needed another button. Which also works.
Except for one thing.
I want my buttons to draw a different image on MouseDown, so it shows you're clicking on it. This worked just fine in my first version, but doesn't now.
Which is already weird, since my code hasn't changed.
However, it gets weirder.
When adding a world.Note to the function that handles the drawing of the 'clicked' image, it works. Splendidly. Deleting that world.Note reverses everything to its problematic state.
I'm baffled, as I have absolutely no idea what causes this.
Then I decided I needed another button. Which also works.
Except for one thing.
I want my buttons to draw a different image on MouseDown, so it shows you're clicking on it. This worked just fine in my first version, but doesn't now.
Which is already weird, since my code hasn't changed.
However, it gets weirder.
When adding a world.Note to the function that handles the drawing of the 'clicked' image, it works. Splendidly. Deleting that world.Note reverses everything to its problematic state.
I'm baffled, as I have absolutely no idea what causes this.