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

[EO] World map


Qazek
 Share

Recommended Posts

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: picWorld
picWorld visible false
in this picture box add label named: lblPlayer
lblPlayer caption: \/

In data files folder make .ini file named world.ini

In world.ini file paste:

```
[WorldMap]
Map1X=2354
Map1Y=542
Map2X=4300
Map2Y=1000
```
To lblMap paste:

```
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
picWorld.Visible = False
End 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

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 If

picWorld want to be picMap, or is picturebox?
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...