Well, I did understand what it does, but I'm just wondering why not use the actor's width and height and have some multiplier, like ⅓ (0.3333). This way all the actors would have the same limitations in relation to their size. Now some very small won't even get to the edge of the screen, while bigger actors can have almost half of them off screen. So, by finding a nice multiplier and by multiplying the actors width and height with it, one would be able to make it act the same way for all sizes of actors.

Or you could make it a function and give it a parameter for changing that limit.
But anyway, pretty nice little code you have here!
