There should be two (if not more) solutions to your problem.
1. You could use the commands
mousey() and
mousex(). Like this for example:
do
rem Find positions of mouse
mposx#=mousex()
mposy#=mousey()
rem If mouse clicked
if mouseclick()=1
MAKE WHAT HAPPENS WHEN CLICKED HERE - LIKE MAKE AN OBJECT ON THE POSITION LIKE THIS
make object plain 1,20,20
position object 1,mousex#,mousey#,Z AXIS
endif
loop
You need to make something happen when the mouse is clicked. I don't know what exactly you want, Is it - In 2D or 3D? What appears - an Object? a Sprite? an Image? a Bitmap?
2. You could make use somehow of the screen commands, such as the position of the mouse on the screen, or make an object be the mouse, or whatever. I really haven't used this command set much, I just know it exists and
may be helpful.
I hope this helps