this is dirty positioning. If the dimensions of the actor change, this would have to be rewritten. If you use a negative margin of half the width and height, then you can use left 50% and top 50% to center it independent of parent dimensions.