Zell
Intermediate OT User
- Joined
- Oct 23, 2010
- Messages
- 214
- Reaction score
- 117
Hi everyone, i have a problem with a simple c++ code, I'm trying to send a Animatedtext to player when it takes damage but appears at the same time the Red numbers of the dmg and they mix on the screen.
So i try to give to the others letters space, for see something like: 50 (damage taked) -25 (my animated text)
here is the lines of the buffer/animated text functions:
So i try to give to the others letters space, for see something like: 50 (damage taked) -25 (my animated text)
here is the lines of the buffer/animated text functions:
Code:
if((int32_t)damageChange != 0)
{
damage -= (int32_t)damageChange + 1;
char buffer2[150];
HERE I NEED SPACE!! -----> // sprintf(buffer2, " -%d");
-----> // target->getPlayer()->sendAnimatedText(targetPos, 15, buffer2);
}
}