I normally use if mousex()>______ like you do, however i normally use variables instead of using exact values so I can easily change them.
Since you position images at the top left corner using an x and a y position I use a variable for each. So Xpos(1)=somenumber. for the if statement I then use if mousex()>xpos(1) and mousex()<xpos(1)+bitmap width(1) The "+bitmap width(1)" part will get the right edge of the image, you do the same for the y value, just replace +bitmap width(1) with +bitmap height(1).
Now about that code, When you are positioning the image you have it use
SPRITE 1,MOUSEY(),MOUSEX(),1
the command syntax is SPRITE Sprite Number, XPos, YPos, Image Number
You are using mousey for the x position and mousex for the y position.
Once the mouse is moved out of the box where you click you can no longer move the sprite. To fix this I use a while statement, While statements are like loops but only run while a condition is true. The condition I used was mouseclick()=1 This means that the mouse left button is clicked.
I eneded up with
while mouseclick()=1
SPRITE 1,MOUSEx(),MOUSEy,1
endwhile
The problem with that is that it never updates the screen, so I added the sync command below the sprite command
It works, well sort of. The plane is leaving a trail behind it, I assume that you dont want that. To fix it I added in a cls command which clears the screen at the top of the wile loop.
And now it kinda works. I assume that you want the middle of the picture to be positioned at the mouse position, and not the top left of the picture. To do this I used the bitmap height and bitmap width commands
you want the middle of the picture to be positioned at the mouse, so we need to find the middle of the picture. I used bitmap height and devided it by 2 to get the middle. I did the same for width. Now that we have those values we need to subtract them to the mousex position and mouse y position. I ended up with...
while mouseclick()=1
cls
SPRITE 1,MOUSEx()-(BITMAP WIDTH(1)/2),MOUSEy()-(bitmap height(1)/2),1
sync
endwhile
The final code i ended up with is
SET DISPLAY MODE 1280,1024,32
sync on
load bitmap "F15.BMP",1
get image 1,0,0,299,299
do
load bitmap "bottom.bmp",2
LOAD BITMAP "SPACE.BMP",0
IF MOUSEY() > 900
copy bitmap 2,0,0,1280,104,0,0,902,1280,0
ENDIF
INK RGB(225,225,0), RGB(0,0,0)
set text size 16
TEXT 34,34,""
IF MOUSEY() < 900 THEN IF bitmap EXIST(2) = 1 THEN DELETE bitmap 2
if bitmap exist(2)= 1
sprite 1,100,909,1
SIZE SPRITE 1 , 88,88
endif
if bitmap exist(2)=0 then ink rgb(0,0,225), rgb(0,0,0)
if bitmap exist(2)=0
text 20,913, "down"
text 20,925, "here"
endif
if bitmap exist(2)=1 then ink rgb(0,0,0), rgb(0,0,0)
if bitmap exist(2)=1
text 20,913, "click"
text 20,925, "me"
endif
if mousey() > 909 and mousey() < 1000 and mousex() > 99 and mousex() < 200 AND mouseclick()=1 then if sprite exist(1)= 1 then delete sprite 1
IF BITMAP EXIST(2)=0 AND SPRITE EXIST(1)=1 THEN DELETE SPRITE 1
while mouseclick()=1
cls
SPRITE 1,MOUSEx()-(BITMAP WIDTH(1)/2),MOUSEy()-(bitmap height(1)/2),1
sync
endwhile
SET CURRENT BITMAP 0
SYNC
LOOP
Hope that is what you wanted it to do.
When life hands you lemons go buy some oranges to make orange juice, and stop expecting everything to be given to you.