obj/overlays
icon = 'cardico.dmi' //GLOBAL SETS FOR OVERLAYS IN GENERAL
layer = FLOAT_LAYER -4
animation
pixel_x = -32
pixel_y = -32
icon = 'summon.dmi'
SS/icon_state = "_SS"
NS/icon_state = "_NS"
FS
icon = 'summon_.dmi'
icon_state = "_FS"
mob/var/tmp/obj/cards/Monster1
mob/verb/Summon_Animation()
usr.Monster1.overlays += /obj/overlays/animation/NS
Problem description:
In my game, clicking the verb above I would expect the overlay to play. It does not.
Normally the above is done within the procs of the game during gameplay, and I noticed that after a certain version of BYOND (v493 I think) that they just stopped working in certain procs.
What makes this issue really annoying is that sometimes the overlay WILL show up. I have not been able to find out why, and have spent many hours trying to pinpoint the conditions that would cause the proc to work at one time but not another. But it seems to make no sense at all - in general though the above code does NOTHING.
The overlays are animated, and 96 x 96 pixels.
[b]EDIT:[/b]
Ok I just changed (in real time) the icon_state of the icon the overlay was applied to, and the overlay appeared!!! It will only play when I mess around with the icon_state. This explains why it plays at certain times in my game, as in some situations the icon_state of the object is changed to reveal the icon as the animation is played.
Can someone please explain what is going on and why this is happening? My standard non-animated overlays do not seem to be affected.
:( This used to all work fine for many many years (6 of them! My game has been going for a long time).