obj
BloodParticles
icon='Effects.dmi'
icon_state="blood"
New()
..()
Dissapate(100,1)
atom
proc
Dissapate(t,delete)
set waitfor=FALSE
animate(src,alpha=100,time=300)
if(delete)
sleep(t)
del(src)
Problem description:
I have this code start on all the blood particles. Instead of slowly changing their alpha,it instantly changes their alpha.
But when I do something like this
animate(src)
animate(alpha=100,time=300)
It works fine but occasionally will turn the players mob alpha which is weird cuz I don't have any code that runs this on the player mob.
The animate is actually suppose to transition to 0 alpha and the animate time is suppose to be set to t, but I changed it to demonstrate the code otherwise the particles would instantly go fully alpha, and time was set manually to clarify its not working correctly.
Code:
and