Much thanks, Reno; I just got one more question, what are the a1,a2,a3,a4,a5,a6 for? Just wondering. Also, If this
is my code
Then lets say I want to have the program loop me to the part the mouse is on (for example, new game) when the
collision's detected and MouseDown then how would I do
that with a While/Wend loop?
is my code
Graphics 800,600 ;Images COE=LoadImage("cube_of_evil.bmp") hand=LoadImage("hand.bmp") title=LoadImage("title.bmp") Xbound=LoadImage("X-boundary") Ybound=LoadImage("Y-boundary") mouse=LoadImage("mouse.bmp") new0=LoadImage("newgame.bmp") Global neww=LoadImage("newgame1.bmp") ;Fonts fntArial=LoadFont("Arial",48,False,True,False) fntbroadway=LoadFont("Broadway",36,False,False,False) fntgameover=LoadFont("Chiller",48,True,True,False) While Not KeyDown(1) SetFont fntArial Color 0,0,255 .menu SetFont fntbroadway Cls DrawImage title,200,0 DrawImage new0,300,250,0 DrawImage mouse,MouseX(),MouseY() Text 300,300,"High Score",False,False Text 300,350,"Options",False,False HighlightNew(mouse,MouseX(),MouseY(),300,250,205,31) Delay 25 Flip Wend Function HighlightNew(a1%,a2%,a3%,a4%,a5%,a6%,a7%) If ImageRectOverlap(a1,a2,a3,a4,a5,a6,a7) DrawImage neww,300,250,0 EndIf End Function
Then lets say I want to have the program loop me to the part the mouse is on (for example, new game) when the
collision's detected and MouseDown then how would I do
that with a While/Wend loop?