Navigating menus

Blitz3D Forums/Blitz3D Beginners Area/Navigating menus

The problem with the imagecollide bits is that the MouseHit() function resets after it has been tested the first time, so when the second IF statement runs the number of clicks held in this function is 0 and thus the second IF never evaluates to TRUE.

What you need is either:

if MouseHit(1) then
  imagecollide stuff excluding the AND MOUSEHIT(1)
end if


OR

mouseclicked = MouseHit(1)

If ImageRectCollide(options,100,450,0,MouseX(),MouseY(),5,5) And mouseclicked
...


I also took out the DELAY 5 which was causing the results to be eratic at best.

As for your other problem, a) I dont understand and b) it works OK for me now.

Tim