/tg/ Station 13 - Modules - TypesDefine Details

code/__HELPERS/animations.dm

DO_FLOATING_ANIMCauses the passed atom / image to appear floating, playing a simple animation where they move up and down by 2 pixels (looping)
STOP_FLOATING_ANIMStops the passed atom / image from appearing floating (Living mobs also have a 'body_position_pixel_y_offset' variable that has to be taken into account here)

Define Details

DO_FLOATING_ANIM

Causes the passed atom / image to appear floating, playing a simple animation where they move up and down by 2 pixels (looping)

In most cases you should NOT call this manually, instead use /datum/element/movetype_handler! This is just so you can apply the animation to things which can be animated but are not movables (like images)

STOP_FLOATING_ANIM

Stops the passed atom / image from appearing floating (Living mobs also have a 'body_position_pixel_y_offset' variable that has to be taken into account here)

In most cases you should NOT call this manually, instead use /datum/element/movetype_handler! This is just so you can apply the animation to things which can be animated but are not movables (like images)