Currently I'm creating an overlay on my icon, then setting the player's layer to 0, so only the overlay is meant to be visible, but for some reason both icons are visible.
This is what I'm doing:
obj/Animation
proc/Animate(loc, mob/Creator)
Creator.layer = 0
icon = Creator.icon
Creator.overlays += src
flick("Animation", Creator)
The reason I'm using the player's icon on the overlay is because BYOND takes few miliseconds to update a big icon's appareance when you change it's pixel_y on run-time, and with this step I can simulate the animation perfectly without a single delay.
I tried to do the same with a different icon (so it doesn't take Creator.icon), and it worked, but I don't want to create tons of icons on the folder for simple animations which could be kept in the same icon.
Thank you! :)