13-12-2006, 02:37 PM
Well, you can create an array of buttons w/ the buttons X1,Y1;X2,Y2 information, that way you can make your buttons sizeable and it will be pretty easy. The object you click(the screen is actualy an image box named picScreen. This is where everything happens: or you can go direticly to:In mirage, the server search the player using it's position. It would be much easier if you check that client side.
This is the packet that the server receives from the client with the X and Y that you clicked on picScreen. Good luck ^^
Code:
Private Sub picScreen_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Code:
Sub PlayerSearch(Button As Integer, Shift As Integer, x As Single, y As Single)
Code:
' :: Search packet ::