Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Error in Map Editor after resize game Window!?


Kampfschaf
 Share

Recommended Posts

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

960 / 32 = 30
768 / 32 = 24

So 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

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

Ahhhh :) Works seriously :P

And 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...