The webclient doesn't properly render animate(actually, in my case, animate() doesn't do anything)
Code Snippet (if applicable) to Reproduce Problem:
#define DMG_Font_Width 10
mob/proc
_Damage(var/mob/M, var/Damage)
var
Num_Pos = 1
Num_Length = length(Damage)
while(Num_Pos<Num_Length+1)
var/Number = copytext(Damage, Num_Pos, Num_Pos+1)
var/image/i = image('Damage_Font.dmi',icon_state="[Number]",pixel_y = 32, loc = M, layer = EFFECTS_LAYER)
switch(Num_Length)
if(1)
i.pixel_x = Num_Pos * DMG_Font_Width
if(2)
i.pixel_x = Num_Pos * DMG_Font_Width - 4
if(3)
i.pixel_x = Num_Pos * DMG_Font_Width - 8
if(4)
i.pixel_x = Num_Pos * DMG_Font_Width - 14
Num_Pos += 1
view() << i
animate(i, alpha=200, pixel_y=44, time=5)
spawn(5)
i.loc = null
i = null
Expected Results:
For it to fade the dmg out, as it does on Dream Seeker
Actual Results:
Fails to use animate(), text just appears over a mob's head. No animation effects are displayed.
Workarounds:
Idk