I've been using this for the menu's in my program L&Scape using the following code to detect wheather the mouse is over a sprite. Its quite simple really
The eisiest way to get collision between the mouse pointer and the sprite is to use a 1 pixel by 1 pixel black (or whatever colour) dot, and continuously position it where the mouse is, then use simple sprite collision, like so:
sprite 100,mousex,mousey,100
(Image 100 is the black bot btw.)
if sprite collision (11,100)=1
if mouseclick()=1
`put command here
endif
endif
Hope that helps
Mog.
Life is like a hot bath, the longer you're in it, the more wrinkles you get.