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