damian666 Posted October 4, 2009 Author Share Posted October 4, 2009 OK, this has been a while, but i am stuck XDI'm trying to open a Right click menu NEXT to player who is clicked.but the damn thing wont align XDi tried curX/curY, i tried sending coordinates with server, tried multiplying it with 32, because of tilesize…it just wont work, it opens in left top corner, which is actually normal, seeing I'm using coordinates to update the top and left properties of the PicBox.anyone know what math i have to use to get to the right spot?i stink at that stuff XDany help is appreciated ^^Damian666edited for spelling Link to comment Share on other sites More sharing options...
Patrick Posted October 4, 2009 Share Posted October 4, 2009 I know Kris has this but wouldn't it be mouse click x or y? Link to comment Share on other sites More sharing options...
damian666 Posted October 4, 2009 Author Share Posted October 4, 2009 tried that too… XDit sends the mouse coordinates to server, server uses that to determine if a player is there, then sends coordinates and playername back to client, and there i use it...doesnt work...Damian666 Link to comment Share on other sites More sharing options...
Patrick Posted October 4, 2009 Share Posted October 4, 2009 Have you tried googling? Link to comment Share on other sites More sharing options...
damian666 Posted October 4, 2009 Author Share Posted October 4, 2009 no, i wanted to ask it here first, seeying that the feature exists ^^Damian666 Link to comment Share on other sites More sharing options...
Patrick Posted October 4, 2009 Share Posted October 4, 2009 It sure does exist.But in Kryce Online Link to comment Share on other sites More sharing options...
damian666 Posted October 4, 2009 Author Share Posted October 4, 2009 ill just ask kriss then XDDamian666 Link to comment Share on other sites More sharing options...
kris_hole Posted October 4, 2009 Share Posted October 4, 2009 i cant remember off hand, but when i get home i'll post it for ye damian. unless i happen to have an old back up disc on here XD Link to comment Share on other sites More sharing options...
damian666 Posted October 4, 2009 Author Share Posted October 4, 2009 that would be great man, i just need the equation to get the right offset ^^Damian666 Link to comment Share on other sites More sharing options...
kris_hole Posted October 4, 2009 Share Posted October 4, 2009 well depending how big your rightclick menu is just edit it to your needsi dont know if yours sending any packets or anything, if you are then jsut carry it on. i take it you can figure out whats what :PFIRST OF ALL! MAKE SURE THE RIGHT CLICK PICTUREBOX IS INSIDE PICSCREEN, otherwise this wont work. i mean like. create it inside the picture box. you should know what i mean.anyway here we go XDjust add this toPrivate Sub picScreen_MouseDown(Button As Integer, Shift As Integer, X As Single, y As Single)```If Button = 2 And Not InEditor Then frmMirage.PicRight.Top = (y - 60) frmMirage.PicRight.Left = (X + 15) frmMirage.PicRight.Visible = True End If```ofcourse it would make more sense though to send X and Y through a packet first to make sure theres a player where your clicking. :Plike the packet_search i think its called :)want me to just post the whole lot? XD Link to comment Share on other sites More sharing options...
kris_hole Posted October 4, 2009 Share Posted October 4, 2009 oh and damian add me on msn :P[email protected] Link to comment Share on other sites More sharing options...
damian666 Posted October 4, 2009 Author Share Posted October 4, 2009 well… i allready do send the x and y tru playersearch ^^but this also doesnt work... hmm... WTF XD```If Casestring = "rightclick" Then frmDestiny.PicRightMenu.Left = Parse(2) + 15 frmDestiny.PicRightMenu.Top = Parse(3) - 60 frmDestiny.LblRightClickname.Caption = Parse(1) frmDestiny.PicRightMenu.Visible = True Exit Sub End If```the parse stuff is x and y ofcourse, which is send from the sub you posted, i just check if there is a player there first.weird stuff…also, ill add ya if ya like, but im like never on msn mate XDDamian666 Link to comment Share on other sites More sharing options...
kris_hole Posted October 4, 2009 Share Posted October 4, 2009 you did make the picture box INSIDe picscreen didnt you? Link to comment Share on other sites More sharing options...
kris_hole Posted October 4, 2009 Share Posted October 4, 2009 or if it comes to it i could edit parts of your source for you so it works. up to you :P Link to comment Share on other sites More sharing options...
damian666 Posted October 4, 2009 Author Share Posted October 4, 2009 yes i made it inside the picbox XDi dunno why it wont work, maybe i wil tell Punika to have you do that part then ^^Damian666 Link to comment Share on other sites More sharing options...
kris_hole Posted October 4, 2009 Share Posted October 4, 2009 just email me the source and i'll send it back to you when i'm done :) Link to comment Share on other sites More sharing options...
kris_hole Posted October 4, 2009 Share Posted October 4, 2009 oh also, check that the "Scale" on the picscreen properties is set as Pixel and not twip or any other one. must be pixel :P Link to comment Share on other sites More sharing options...
damian666 Posted October 4, 2009 Author Share Posted October 4, 2009 ok, ill clean it, and send it to you, that way you wont have to deal with my coding XDbut you have to make it go tru playersearch, else it will fuk up.Damian666 Link to comment Share on other sites More sharing options...
kris_hole Posted October 4, 2009 Share Posted October 4, 2009 kk i will :P wait you use the packet that already exists for search? i made a new one on mine. Link to comment Share on other sites More sharing options...
damian666 Posted October 4, 2009 Author Share Posted October 4, 2009 you may choose all by yourself XDDamian666 Link to comment Share on other sites More sharing options...
kris_hole Posted October 4, 2009 Share Posted October 4, 2009 lmao. you sent it yet :P Link to comment Share on other sites More sharing options...
damian666 Posted October 4, 2009 Author Share Posted October 4, 2009 yes, i did just now ^^Damian666 Link to comment Share on other sites More sharing options...
kris_hole Posted October 4, 2009 Share Posted October 4, 2009 ah k i'll check it out =D Link to comment Share on other sites More sharing options...
damian666 Posted October 4, 2009 Author Share Posted October 4, 2009 thanx ^^Damian666 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now