Wouldnt it be easier to do
loadimage (20,"mouse".png)
createsprite (20,20):setspritevisible(20,1)
loadimage (21,"menu_1".png)
createsprite (21,21):setspritevisible(21,1)
loadimage (22,"menu_2.png")
createsprite(22,22) : setspritevisible(22,0)
loadimgae (23,"menu_3.png")
createsprite(23,23) : setspritevisible(23,0)
do
if button = 1 and getspritecollision (20,21)
setspritevisible(21,0)
setspritevisible(22,1)
setspriteposition (22, 1300, 100)
else // you need to put else here because the line above will make sprite 22 appear - but then the mouse 20 will immediately trigger the next if statement
if button = 1 and getspritecollision (20,22)
setspritevisible(22,0)
setspritevisible(23,1)
setspriteposition (23,1300,200)
endif
endif
Sync()
loop