vbGore Free Online RPG Engine

Revolutionizing Visual Basic ORPG Development
It is currently Sun May 19, 2013 11:45 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Minimap
PostPosted: Tue Mar 09, 2010 11:45 am 
Source Code Swashbuckler

Joined: Mon Jul 28, 2008 9:25 am
Posts: 29
Hey everyone,

I'm trying to make the minimap in a window. Only thing I need to know is, how I can make the .X and .Y of the minimap the same as the X and Y as a window. I know the code I need to change is this:

Code:
        'Top-left corner
        With tVA(0 + Offset)
            .X = MiniMapTile(j).X * MiniMapSize
            .Y = MiniMapTile(j).Y * MiniMapSize
            .Color = MiniMapTile(j).Color
            .Rhw = 1
        End With
       
        'Top-right corner
        With tVA(1 + Offset)
            .X = MiniMapTile(j).X * MiniMapSize + MiniMapSize
            .Y = MiniMapTile(j).Y * MiniMapSize
            .Color = MiniMapTile(j).Color
            .Rhw = 1
        End With
       
        'Bottom-left corner
        With tVA(2 + Offset)
            .X = MiniMapTile(j).X * MiniMapSize
            .Y = MiniMapTile(j).Y * MiniMapSize + MiniMapSize
            .Color = MiniMapTile(j).Color
            .Rhw = 1
        End With
       
        '*** Triangle 2 ***
       
        'Top-right corner
        tVA(3 + Offset) = tVA(1 + Offset)
       
        'Bottom-right corner
        With tVA(4 + Offset)
            .X = MiniMapTile(j).X * MiniMapSize + MiniMapSize
            .Y = MiniMapTile(j).Y * MiniMapSize + MiniMapSize
            .Color = MiniMapTile(j).Color
            .Rhw = 1
        End With


And then for every corner the .X and .Y needs to be changed. Can someone help me with how it should be changed?

Thanks!


Top
 Profile  
 
 Post subject: Re: Minimap
PostPosted: Tue Mar 09, 2010 12:15 pm 
Carmack's Pimple

Joined: Tue Dec 16, 2008 11:46 am
Posts: 63
Wouldn't you just and that code to empty window so it shows only in the window?

I'm not really sure. I haven't delved that far into code manipulation.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group