1
Other Packages / Re: NGUI: HUD Text
« on: March 19, 2014, 08:37:41 AM »
Hi,
I'm using HudText for showing score on the character's head.
My game has multi line characters which run together.
When collide items, the score shows with HudText.
In the HudText panel, all child has same position(0,0,0) and it follows 3d characters.

It reference target position which is on the characters head.

When 3 characters run, it works well as I expected.

But 4 characters, the left side of HudText's position is lower than others.

5 characters, same thing happens.

Only left side of HudText position is different with others.
When this occurs, the Y position of left side HudText is different with others.
My code is simple like below.
Any advice?
I'm using HudText for showing score on the character's head.
My game has multi line characters which run together.
When collide items, the score shows with HudText.
In the HudText panel, all child has same position(0,0,0) and it follows 3d characters.

It reference target position which is on the characters head.

When 3 characters run, it works well as I expected.

But 4 characters, the left side of HudText's position is lower than others.

5 characters, same thing happens.

Only left side of HudText position is different with others.
When this occurs, the Y position of left side HudText is different with others.

My code is simple like below.
- int tempBonusScore = MoreComboScoreMini();
- for (int i = lineNumStart; i < lineNumMax; i++)
- {
- playerMove.score += tempBonusScore;
- scoreHud[i].Add("+" + tempBonusScore.ToString(), scoreHudColor, 0f);
- }
Any advice?