ID:1745344
 
Code:
obj/CardAnimations
icon = 'CardAnimations.dmi'

setCard
icon_state = "set"


obj/proc/SetCardAnimation(var/obj/card/A)
var/obj/C = new /obj/CardAnimations/setCard
A.overlays += C
animate(C)


/obj/card/proc/MAKESETCARD(var/obj/card/A)
A.overlays += FACE_DOWN_OVERLAY
//Facedown set stuff blah Blah//
SetCardAnimation(A)


Problem description:
So what happens is either the overlay is getting added to the card but not playing the animation or the overlay is not adding at all. I have tried to set is as a seperate object and it works without adding as an overlay but anything else, it will not work.

I presume this has something to do with Obj not animating when they are set as overlays? I have tried using the animate() but nothing happens.
This
animate(C)

doesn't do anything. In fact, it clears animations. What are you trying to do? Just playing through the overlay's icon_state animation? If so, that should happen automatically. Are you sure that your icon isn't a movement state, or has multiple directions? Also, you might want to make certain that the second overlay is placed on top, to be safe.
It does have multiple directional states but is not a movement state. I am just playing the overlay icon_state. I've done it before and it works but this one time it doesn't work.
BUMP