ID:261654
 
I've got a procedure that removes objects from client.screen. However, if I remove an object that has an overlay, the object is removed but the overlay is not. Secondly, when I take an object in client.screen and mess with it's pixel_x or pixel_y, no change is shown.

-Lord of Water
You don't change client screen objects with pixel_x and pixel_y. You set it int the screen_loc var.

L.screen_loc = "1:8,1:8"

the numbers are "x:pixel_x,y:pixel_y"

And for the overlays problem, can't you loop thru all the objects on the client's screen and set the overlays to null, then delete them?
In response to OneFishDown (#1)
Aha. I tried x.pixel_x, but not :. Thanks for that one. I am looping through and deleting them and the object is deleted, but the overlay isn't.
In response to Lord of Water (#2)
Try setting the object's overlay to null, then delete the object.
In response to OneFishDown (#3)
That worked, but it still dosn't excuse the fact that the overlays aren't bening removed from the screen.