Hello all, trying my hands on a little line drawing game, and I have it working but now i'm trying to see if X is within the bounds of a button I have placed in Designer.
This does not work apparently. I guess I can see why (I think) but I'm unsure how to correct it. The line is drawn from the top of the screen by the way.
B4X:
If x > Button1.Top Then
If x > Button1.Left Then
If x < Button1.Top + 20 Then
If x < Button1.Left + 60 Then
Button1.Visible = False
End If
End If
End If
End If
This does not work apparently. I guess I can see why (I think) but I'm unsure how to correct it. The line is drawn from the top of the screen by the way.