obj/text_obj
icon = null
New(text, s_loc, width = 380, height = 0, lyr = FLY_LAYER+3)
set_text(text)
screen_loc = s_loc
maptext_width = width
maptext_height = height
layer = lyr
Problem description:
Above code is used to create some on screen text object. Like below -
PlayerH
parent_type = /obj
var
obj/text_obj/h
New(mob/mob)
h = new/obj/text_obj(text="<text align=center><font size=1>[mob.H]/[mob.MH]</font></text>", s_loc="6:5,11:20", width=0)
h.layer = FLY_LAYER + 4
player += h
Then PlayerH is initialized in Login() proc. The problem is, when log out and re-login, it does not get deleted and it keep creating the maptext which overlapse the previous one.
Regards.
One of your options is to not save h
Note: You'll have to save first then load to see the result.