/datum/element/pixel_shifting
Does a pixel shift animation towards a specific target
Procs | |
Attach | Function to attach the shifting element to the effect |
---|
Proc Details
Attach
Function to attach the shifting
element to the effect
Params:
- target (/datum): The effect we are attaching to, should be of type /obj/effect unless you messed up
- to_shift_towards (/atom): The atom the effect will pixel shift towards
- distance_ratio (num): The percentage of the distance between the effect and
to_shift_towards
that the effect should cover (0 <= distance_ratio <= 1) - duration (num): Duration of the animation (i.e. how fast the effect will pixel shift to its destination)