Navigating menus

Blitz3D Forums/Blitz3D Beginners Area/Navigating menus

hmm, alright, i made myself a "Options" button, but cant seem to get it to work, it only seems to work with the first button it checks, options button works if its ontop of the play button, vis versa:

;Collisions basicly making the buttons work
If ImageRectCollide(options,100,450,0,MouseX(),MouseY(),5,5) And MouseHit(1)
selection=3
End If
If ImageRectCollide(continue,100,400,0,MouseX(),MouseY(),5,5) And MouseHit(1)
selection=2
End If