var/obj/P = new
P.icon='Mob.dmi'
P.screen_loc="2,2"
src.client.screen+=P
var/Palpha=0
while(Palpha!=250)
Palpha+=10
P.icon = rgb(0,0,0,Palpha)
sleep(3)
sleep(40)
while(Palpha!=0)
Palpha-=10
P.icon = rgb(0,0,0,Palpha)
sleep(3)
src.client.screen-=P
Problem description:
So I was wanting a logo to fade in and hold for a few seconds then fade out. I've tried to get it to work but for some reason I just cant do it. Anyone see the problem?
You may end up finding it easier to just make an icon with the fading states and using that, icon operations for stuff like this tend to be a bit overkill.