ID:142928
 
Code:
Damage(var/num)
var/tmp/list/damage=new()
num = round(num)
if(num < 1)num = 1
if(num > 9999)num = 9999
var/string = num2text(num)
for(var/n=1,n<=length(string),n++)
damage+=copytext(string,n,n+1)
if(damage.len>=1)
var/x=0
for(var/v in damage)
var/obj/damage/T=new()
T.pixel_x=x
spawn()
T.icon_state = "[v]"
T.icon+=rgb(255,0,0)
T.overlays=null
T.underlays=null
var/image/A= image(T,src)
src << A
sleep(5)
var/p=0
while(p<=15)
A.pixel_y+=1
p++
sleep(10)
del(A)
x+=8


and


takedamage(mob/attacker,damage)
src.hp-=damage
src.Damage(damage)
src.Death(attacker)


Problem description: well takedamage works fine kills and takes damage and all but for some reason dont show the damage