Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Blitted Objects, Clickable?
#1
I've learned alot since I've been here (Thanks to those nice members) now I'm asking how would you make blitted objects clickable. Which I'm positive is very possible. Actually, If I found out myself I have a few tutorials to release for beginners.

:: Pando
Reply
#2
Look at how the players are clickable. I can't remember what sub it is, but it's not hard to find.
Reply
#3
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:
Code:
Private Sub picScreen_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
or you can go direticly to:
Code:
Sub PlayerSearch(Button As Integer, Shift As Integer, x As Single, y As Single)
In mirage, the server search the player using it's position. It would be much easier if you check that client side.
Code:
' :: Search packet ::
This is the packet that the server receives from the client with the X and Y that you clicked on picScreen. Good luck ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)