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

Player/NPC Names on Mouse Hover


Alerd
 Share

Recommended Posts

Hi I would like to do to my character's name is always displayed

i use

this code

[http://www.touchofde…on-mouse-hover/](http://www.touchofdeathforums.com/community/index.php?/topic/118924-playernpc-names-on-mouse-hover/)

thanx :>
Link to comment
Share on other sites

No problem

change

```

' draw player names

For i = 1 To Player_HighIndex

If IsPlaying(i) And GetPlayerMap(i) = GetPlayerMap(MyIndex) Then

If CurX = Player(i).x And CurY = Player(i).y Then

Call DrawPlayerName(i)

End If

End If

Next

```

to

```

' draw player names

For i = 1 To Player_HighIndex

If i = MyIndex Then

Call DrawPlayerName(i)

End If

If IsPlaying(i) And GetPlayerMap(i) = GetPlayerMap(MyIndex) And i <> MyIndex Then

If CurX = Player(i).x And CurY = Player(i).y Then

Call DrawPlayerName(i)

End If

End If

Next

```
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...