Actually rojan, he wants his program to do something when he clicks a sprite. If you want to do this, you need to keep a container of all of your sprites, and when the mouse button is pressed, check if the coordinates of the mouse press are on top of any of these sprites.