SkywardRiver Posted September 22, 2012 Author Share Posted September 22, 2012 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 ThenTextY = ConvertMapY(GetPlayerY(Index) * PIC_Y) + Player(Index).yOffset - 16Else' Determine location for textTextY = ConvertMapY(GetPlayerY(Index) * PIC_Y) + Player(Index).yOffset - (Tex_Character(GetPlayerSprite(Index)).Height / 4) + 16End IfWhat can I do to fix this?Please and thank you,Jaxx Link to comment Share on other sites More sharing options...
Ertzel Posted September 23, 2012 Share Posted September 23, 2012 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 More sharing options...
Boynaar44 Posted September 23, 2012 Share Posted September 23, 2012 This code is nothing, I guess you saved the suffix to the player type? and coded so it changes the value of "name" in the code you posted to PlayerSuffix + name?All those spaces might be because you didn't use Trim$ by saving the suffix. 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