How exactly would I code a function that checks to see if the mouse is in a certain area, and then when it's clicked another function will start. SO basically, how can I make an invisible box around a sprite that checks to see if the mouse is in it?
I can't seem to find anything on google.
This is with SFML 2.0 by the way.
Thanks in advance