ID:142150
 
Code:
                                usr.client.screen+=new/obj/Items/Questobjs/Arrow
usr.client.screen += new/obj/hp/meter1
usr.client.screen += new/obj/hp/meter2
usr.client.screen += new/obj/hp/meter3
usr.client.screen += new/obj/hp/meter4
usr.client.screen += new/obj/hp/meter5
usr.client.screen += new/obj/mp/meter1
usr.client.screen += new/obj/mp/meter2
usr.client.screen += new/obj/mp/meter3
usr.client.screen += new/obj/mp/meter4
usr.client.screen += new/obj/mp/meter5
usr.client.screen += new/obj/exp/meter1
usr.client.screen += new/obj/exp/meter2
usr.client.screen += new/obj/exp/meter3
usr.client.screen += new/obj/exp/meter4
usr.client.screen += new/obj/exp/meter5
usr.client.screen += new/obj/Health
sleep(20)
usr.client.screen -= new/obj/hp/meter1
usr.client.screen -= new/obj/hp/meter2
usr.client.screen -= new/obj/hp/meter3
usr.client.screen -= new/obj/hp/meter4
usr.client.screen -= new/obj/hp/meter5
usr.client.screen -= new/obj/mp/meter1
usr.client.screen -= new/obj/mp/meter2
usr.client.screen -= new/obj/mp/meter3
usr.client.screen -= new/obj/mp/meter4
usr.client.screen -= new/obj/mp/meter5
usr.client.screen -= new/obj/exp/meter1
usr.client.screen -= new/obj/exp/meter2
usr.client.screen -= new/obj/exp/meter3
usr.client.screen -= new/obj/exp/meter4
usr.client.screen -= new/obj/exp/meter5
usr.client.screen -= new/obj/Health
sleep(20)
usr.client.screen += new/obj/hp/meter1
usr.client.screen += new/obj/hp/meter2
usr.client.screen += new/obj/hp/meter3
usr.client.screen += new/obj/hp/meter4
usr.client.screen += new/obj/hp/meter5
usr.client.screen += new/obj/mp/meter1
usr.client.screen += new/obj/mp/meter2
usr.client.screen += new/obj/mp/meter3
usr.client.screen += new/obj/mp/meter4
usr.client.screen += new/obj/mp/meter5
usr.client.screen += new/obj/exp/meter1
usr.client.screen += new/obj/exp/meter2
usr.client.screen += new/obj/exp/meter3
usr.client.screen += new/obj/exp/meter4
usr.client.screen += new/obj/exp/meter5
usr.client.screen += new/obj/Health
sleep(20)
usr.client.screen -= new/obj/hp/meter1
usr.client.screen -= new/obj/hp/meter2
usr.client.screen -= new/obj/hp/meter3
usr.client.screen -= new/obj/hp/meter4
usr.client.screen -= new/obj/hp/meter5
usr.client.screen -= new/obj/mp/meter1
usr.client.screen -= new/obj/mp/meter2
usr.client.screen -= new/obj/mp/meter3
usr.client.screen -= new/obj/mp/meter4
usr.client.screen -= new/obj/mp/meter5
usr.client.screen -= new/obj/exp/meter1
usr.client.screen -= new/obj/exp/meter2
usr.client.screen -= new/obj/exp/meter3
usr.client.screen -= new/obj/exp/meter4
usr.client.screen -= new/obj/exp/meter5
usr.client.screen -= new/obj/Health
sleep(20)
usr.client.screen += new/obj/hp/meter1
usr.client.screen += new/obj/hp/meter2
usr.client.screen += new/obj/hp/meter3
usr.client.screen += new/obj/hp/meter4
usr.client.screen += new/obj/hp/meter5
usr.client.screen += new/obj/mp/meter1
usr.client.screen += new/obj/mp/meter2
usr.client.screen += new/obj/mp/meter3
usr.client.screen += new/obj/mp/meter4
usr.client.screen += new/obj/mp/meter5
usr.client.screen += new/obj/exp/meter1
usr.client.screen += new/obj/exp/meter2
usr.client.screen += new/obj/exp/meter3
usr.client.screen += new/obj/exp/meter4
usr.client.screen += new/obj/exp/meter5
usr.client.screen += new/obj/Health

sleep(10)
usr.client.screen-=new/obj/Items/Questobjs/Arrow
sleep(10)

obj/Items/Questobjs
icon='Quest Objects.dmi'
Arrow
icon_state="Arrow"
screen_loc = "9,10"
Hp_Arrow
icon='screen.dmi'
icon_state="Hp Bar arrow"
screen_loc = "11,17"


Problem description:
Well basically (during the tut) i want it so your hp and mp bars flash on the screen to show where they are located... what happens is it pops up but it doesn't disappear same with the "Arrow", it comes up but doesn't go away.
I'd assign them a designating var like this :

var/obj/hp/meter1/A = new() //example
usr.client.screen += A


Then I'd just delete it after the spawn;

 
del(A)
This is indeed because you keep creating new objects. You're creating one instance, storing no reference to it in the process, then later you're trying to remove it with a completely new, different instance. Obviously, this doesn't work and you need to remove the same object instance you've added - if you try to remove a new, just-created object from a list it won't do anything, because that object already isn't there.
Look up the istype() proc, and possibly the for() loop proc.

list/added_objs
for(var/X in typesof(/obj/hp)) //I'll use this as an example
added_objs += new X
usr.client.screen += added_objs
sleep(20)
usr.client.screen -= added_objs
added_objs = null //this removes all references to the objects (or should atleast,
//depending on your code), so they will get deleted by the garbage
//collector
In response to Jeff8500
You don't really need the last line, there will be the same effect without it. When the proc ends, the added_objs var is gone (as it was the proc's local var), so the list isn't referenced anymore all the same and is deleted (then are the objects in it, subsequently).