mob/verb/test()
// start with a non-animated arrow icon
var/icon/I = new('arrow.dmi')
// make a new state called "blink"
var/icon/J = new('arrow.dmi')
I.Insert(J, "blink", delay=-1) // set rewind flag
// create darker shades of the arrow
var/n = 2
for(var/light=9, light>=5, light--)
J = new('arrow.dmi')
J.SetIntensity(light/10)
I.Insert(J, "blink", frame=n++)
// congratulations, you have a pulsating arrow
icon = I
Problem description:
I made an icon named arrows.dmi and drew an arrow icon_state in it, the icon_state has no name. When I run this code, nothing is inserted into the icon and the players icon is'nt blinking/pulsating. I've used this example in the past and I've come back to it now and now I can't get it to work.
Lummox JR