text actor view centering problems
Posted: Tue Apr 12, 2011 1:29 pm
hi folks!
i´m using this function and somehow i have problems with it:
somehow its too far to the right. cant explain it.
is there a once-and-for-all centering function that works with normal AND textonly actors??
any help much appreciated!
EDIT: my screen (view) is 480x320
i´m using this function and somehow i have problems with it:
- Code: Select all
void centerMeX()
{
x = view.x+(240-width*0.5); // ?
}
somehow its too far to the right. cant explain it.
is there a once-and-for-all centering function that works with normal AND textonly actors??
any help much appreciated!
EDIT: my screen (view) is 480x320