I have a point in rect collision function here:
Method point_in_rect(mouse_X,Mouse_Y)
If Mouse_X > self.x
If Mouse_X < (self.x + self.width)
If Mouse_Y > self.y
If Mouse_Y < (self.y + self.height)
Return True
EndIf
EndIf
EndIf
EndIf
EndMethod
it works great with images that have not been rotated
but when I rotate an image i fails to detect a collision
I could use collideimages but I dont want to have the mouesimage collide because it would collide with 2 buttons at once if the mouse was close enough to 2 buttons.
Method point_in_rect(mouse_X,Mouse_Y)
If Mouse_X > self.x
If Mouse_X < (self.x + self.width)
If Mouse_Y > self.y
If Mouse_Y < (self.y + self.height)
Return True
EndIf
EndIf
EndIf
EndIf
EndMethod
it works great with images that have not been rotated
but when I rotate an image i fails to detect a collision
I could use collideimages but I dont want to have the mouesimage collide because it would collide with 2 buttons at once if the mouse was close enough to 2 buttons.