Kampfschaf Posted July 1, 2012 Author Share Posted July 1, 2012 Hi Pros.Anybody see that if you resize the gamewindow the map editor doesnt work perfectly? The litte aquare around the mouse is displaced when you are near the bottom right. My res is 960x768\. I think the mouse coos are not calculated correct. Is there a fix? And by the way where can i set the color of the square?MERCI Link to comment Share on other sites More sharing options...
Stein Posted July 1, 2012 Share Posted July 1, 2012 Did you do it properly? it needs to be dividable by 32, and then substract one. (e.g. X = (640 / PIC_X) - 1) Link to comment Share on other sites More sharing options...
Kampfschaf Posted July 1, 2012 Author Share Posted July 1, 2012 960 / 32 = 30768 / 32 = 24So it is :) Its the same in game. The mousepos looks different.What size must have the picScreen? 960x768 or 959x767? But… both does do nothing. The square is displaced when you near the bottom corner.I only take the old values and multi them by 2 :) Link to comment Share on other sites More sharing options...
Stein Posted July 1, 2012 Share Posted July 1, 2012 You need to substract one from those values still. ;] So 29/23, not 30/24 :]It's computer logic, since we start at 0 entering 30 would mean we have 31 options, thus rendering 31 tiles where we only want to render 30\. It's a bit odd when you're not used to it, but it makes sense when you think about it. Link to comment Share on other sites More sharing options...
Kampfschaf Posted July 1, 2012 Author Share Posted July 1, 2012 Ahhhh :) Works seriously :PAnd the other question by the way?``` If InMapEditor Then If frmEditor_Map.optBlock.Value = True Then For x = TileView.Left To TileView.Right For y = TileView.top To TileView.Bottom If IsValidMapPoint(x, y) Then Call BltDirection(x, y) End If Next Next End If Call BltTileOutline End If```Is this i think!? But where i can set the color to red? The white i cant see really! Link to comment Share on other sites More sharing options...
Stein Posted July 1, 2012 Share Posted July 1, 2012 What text are you trying to turn red? o_ O Link to comment Share on other sites More sharing options...
Kampfschaf Posted July 1, 2012 Author Share Posted July 1, 2012 The SQUARE around the mouse cursor while mapping :) Link to comment Share on other sites More sharing options...
Stein Posted July 1, 2012 Share Posted July 1, 2012 Oh, that's an image.. Data Files\Graphics\Misc.bmp Link to comment Share on other sites More sharing options...
Kampfschaf Posted July 1, 2012 Author Share Posted July 1, 2012 Good joke and till yesterday iam searching for the code line :P 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