doomteam1 Posted March 24, 2011 Author Share Posted March 24, 2011 I've change the map size correctly, on both the client and the server. I've deleted all maps and changed the size of PicScreen. However now it doesn't get the mousex and mousey correctly. What i mean is while moving the the bottom of the screen or to the right the actual place where it says the mouse is and where the mouse actually is becomes separated.So i was wondering if i missed a place on changing the map size. Or if i have to change anything else. Link to comment Share on other sites More sharing options...
iSKweek Posted March 24, 2011 Share Posted March 24, 2011 You need to change the MapX and MapY constant values in both the client and server to the amount of tiles shown at any given time. Link to comment Share on other sites More sharing options...
doomteam1 Posted March 24, 2011 Author Share Posted March 24, 2011 i have already done so.I have also changed the picScreen size to match Link to comment Share on other sites More sharing options...
iSKweek Posted March 24, 2011 Share Posted March 24, 2011 I had this problem a while ago, if you havent got an answer when I get home from uni I will see if I managed to fix it. Link to comment Share on other sites More sharing options...
doomteam1 Posted March 24, 2011 Author Share Posted March 24, 2011 ok thx, i honestly can't see whats wrong ive checked everything in the coding, ive looked to see what handles it and can't find anything. Link to comment Share on other sites More sharing options...
iSKweek Posted March 25, 2011 Share Posted March 25, 2011 Go into the form editor and tell me what the scaleheight and scalewidth are for picScreen. I think that is what affected it for me but I am not 100% sure. And just to be sure, you do have the constants set like this:actual pixels of map - (x)400 x (y) 600MAX_MAPX = 12MAX_MAPY = 18(as an example, mapx and mapy have to be the actual size - 1 divided by 32. Link to comment Share on other sites More sharing options...
doomteam1 Posted March 25, 2011 Author Share Posted March 25, 2011 600x 800yMapx = 20mapy = 25 Link to comment Share on other sites More sharing options...
iSKweek Posted March 25, 2011 Share Posted March 25, 2011 Change mapx to 18 Link to comment Share on other sites More sharing options...
doomteam1 Posted March 25, 2011 Author Share Posted March 25, 2011 don't fix it Link to comment Share on other sites More sharing options...
doomteam1 Posted March 25, 2011 Author Share Posted March 25, 2011 Ok, i fixed it, buti still am habng some sort of an alignment error, i moved my hotbar, but now the place where i have my mouse and the place where it says its at increases as i go right on the hot bar Link to comment Share on other sites More sharing options...
doomteam1 Posted March 25, 2011 Author Share Posted March 25, 2011 http://www.youtube.com/watch?v=TnqEhgOa4-MI made a video showing what is wrong, just incase i wasn't explaining it right. Link to comment Share on other sites More sharing options...
doomteam1 Posted March 27, 2011 Author Share Posted March 27, 2011 so, anyone got a clue on why its doing it Link to comment Share on other sites More sharing options...
Alatar Posted March 27, 2011 Share Posted March 27, 2011 Wow, weird.Hmm, try this:screen: 608x 800yMapx = 18mapy = 24 Link to comment Share on other sites More sharing options...
doomteam1 Posted March 27, 2011 Author Share Posted March 27, 2011 tried it, it does the same thing, has anyone else ever tried to change the map size and this error come up? Link to comment Share on other sites More sharing options...
Alatar Posted March 27, 2011 Share Posted March 27, 2011 I have really no idea :/It happens only on your computer? Have you tried with another one? Link to comment Share on other sites More sharing options...
doomteam1 Posted March 27, 2011 Author Share Posted March 27, 2011 yes i've tried with 4 differnt computers, 2 mine, 2 from people in other countries.It has to do with this``` x = x + picHotbar.Left + 1```in this sub```Private Sub picHotbar_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)Dim SlotNum As Long ' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo errorhandler SlotNum = IsHotbarSlot(x, y) If SlotNum <> 0 Then If Hotbar(SlotNum).sType = 1 Then ' item x = x + picHotbar.Left + 1 y = y + picHotbar.top - picItemDesc.height - 1 UpdateDescWindow Hotbar(SlotNum).Slot, x, y LastItemDesc = Hotbar(SlotNum).Slot ' set it so you don't re-set values Exit Sub ElseIf Hotbar(SlotNum).sType = 2 Then ' spell x = x + picHotbar.Left + 1 y = y + picHotbar.top - picSpellDesc.height - 1 UpdateSpellWindow Hotbar(SlotNum).Slot, x, y LastSpellDesc = Hotbar(SlotNum).Slot ' set it so you don't re-set values Exit Sub End If End If picItemDesc.Visible = False LastItemDesc = 0 ' no item was last loaded picSpellDesc.Visible = False LastSpellDesc = 0 ' no spell was last loaded ' Error handler Exit Suberrorhandler: HandleError "picHotbar_MouseMove", "frmMain", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit SubEnd Sub``` 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