Qazek Posted December 28, 2010 Author Share Posted December 28, 2010 Hellou!!!I do it for my game - it's world map but this system have showing player position in map ;)Everything in client.Open frmMain and add:picture box name: picWorldpicWorld visible falsein this picture box add label named: lblPlayerlblPlayer caption: \/In data files folder make .ini file named world.iniIn world.ini file paste:```[WorldMap]Map1X=2354Map1Y=542Map2X=4300Map2Y=1000```To lblMap paste:```Dim FileName As StringFileName = App.Path & "\Data Files\world.ini"If picWorld.Visible = False ThenpicWorld.Visible = TruelblPlayer.top = GetVar(FileName, "WorldMap", "Map" & GetPlayerMap(MyIndex) & "X")lblPlayer.left = GetVar(FileName, "WorldMap", "Map" & GetPlayerMap(MyIndex) & "Y")ElsepicWorld.Visible = FalseEnd If```And in world.ini you change position of player in map 1,2,3 …I add World Map Helper you can use it or not - your decide XD Link to comment Share on other sites More sharing options...
s3th Posted December 28, 2010 Share Posted December 28, 2010 let me try it…> To lblMap paste:There is no lblMap is only lblPlayer Link to comment Share on other sites More sharing options...
westin444 Posted December 28, 2010 Share Posted December 28, 2010 lblMap is the button you use to open/close the map. Link to comment Share on other sites More sharing options...
Qazek Posted December 28, 2010 Author Share Posted December 28, 2010 Sorry my bad.Create label "lblMap" in frmMain ;) Link to comment Share on other sites More sharing options...
s3th Posted December 28, 2010 Share Posted December 28, 2010 1 more question …> Dim FileName As String> > FileName = App.Path & "\Data Files\world.ini"> > If picWorld.Visible = False Then> picWorld.Visible = True> lblPlayer.top = GetVar(FileName, "WorldMap", "Map" & GetPlayerMap(MyIndex) & "X")> lblPlayer.left = GetVar(FileName, "WorldMap", "Map" & GetPlayerMap(MyIndex) & "Y")> Else :rolleyes:> picWorld.Visible = False> End IfpicWorld want to be picMap, or is picturebox? Link to comment Share on other sites More sharing options...
westin444 Posted December 28, 2010 Share Posted December 28, 2010 No offense, for this to be a real world map you should at least make it load some type of image, as a \/ on a blank screen doesn't mean much.@s3th:I think he means picMap Link to comment Share on other sites More sharing options...
Qazek Posted December 28, 2010 Author Share Posted December 28, 2010 Sorry :/ there are picWorld, not picMap. Link to comment Share on other sites More sharing options...
Alatar Posted December 29, 2010 Share Posted December 29, 2010 Hmm i think that this could maybe get a bit more work on before you release it as a tutorial. 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