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

Player Name Addons (EA)


SkywardRiver
 Share

Recommended Posts

Hey, thanks for clicking.

So say you wanted to make an addon onto a Players name.

So say the player typed in "Sword" as their characters name and as you progress through levels you earn the suffix "blade"

Well I can do all this, the problem is it's not drawing properly. There appears to be a big space between the name and the suffix.

Here is the code where it tells the engine where to place a characters name.

TextX = ConvertMapX(GetPlayerX(Index) * PIC_X) + Player(Index).xOffset + (PIC_X \ 2) - (getWidth(Font_Default, (Trim$(name))) / 2)

If GetPlayerSprite(Index) < 1 Or GetPlayerSprite(Index) > NumCharacters Then

TextY = ConvertMapY(GetPlayerY(Index) * PIC_Y) + Player(Index).yOffset - 16

Else

' Determine location for text

TextY = ConvertMapY(GetPlayerY(Index) * PIC_Y) + Player(Index).yOffset - (Tex_Character(GetPlayerSprite(Index)).Height / 4) + 16

End If

What can I do to fix this?

Please and thank you,

Jaxx
Link to comment
Share on other sites

I'm confused, from what I can tell the code you posted is the exact default code used in EA for figuring out the name placement. No where does it have anything to do with your suffix code or how the suffix is added to the name… You will have to show the code your using to draw the suffix in order for people to help with it.
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...