I am having problems with ImagesCollide. Here is an example:
Only the 1st line of code works. The others dont. All the variables and all the spelling is correct. Is this because I am using: mouse,MouseX(),MouseY() wrong?
-Thanks
If ImagesOverlap(mouse,MouseX(),MouseY(),fish2,fish_x2,fish_y2) And MouseHit(1) :fish_speed2=fish_speed2+1:PlaySound bubbles2:score=score+15:EndIf If ImagesOverlap(mouse,MouseX(),MouseY(),fish1,fish_x1,fish_y1) And MouseHit(1) :fish_speed1=fish_speed1+1:PlaySound bubbles2:score=score+10:EndIf If ImagesOverlap(mouse,MouseX(),MouseY(),fish3,fish_x3,fish_y3) And MouseHit(1) :fish_speed3=fish_speed3+1:PlaySound bubbles2:score=score+5:EndIf If ImagesOverlap(mouse,MouseX(),MouseY(),time2,time_x,time_y) And MouseHit(1) :time=time+300:PlaySound bubbles2:score=score+10:EndIf
Only the 1st line of code works. The others dont. All the variables and all the spelling is correct. Is this because I am using: mouse,MouseX(),MouseY() wrong?
-Thanks