If anyone else wants to do it in the meantime, i used this script.
function CenterObject(int object,int widthofobject,int heightofobject)
{
int xp=(((320-widthofobject)/2)+GetViewportX());
int yp=(((200+heightofobject)/2)+GetViewportY());
SetObjectPosition (object, xp, yp);
}
I can't script well but it seems to work ok..
function CenterObject(int object,int widthofobject,int heightofobject)
{
int xp=(((320-widthofobject)/2)+GetViewportX());
int yp=(((200+heightofobject)/2)+GetViewportY());
SetObjectPosition (object, xp, yp);
}
I can't script well but it seems to work ok..