Skip to main content

The "sys_deform_draw" Function

Syntax#

sys_deform_draw(entity, index, tex, width, height, x, y, xscale, yscale, rot, alpha);
ArgumentTypeDescription
entityintegerThe data structure of the entity to end animation
indexintegerThe index of the row containing the target entity
textextureThe texture to be drawn deformed
widthrealThe original width of the source sprite or surface
heightrealThe original height of the source sprite or surface
xrealThe horizontal position to draw the deformation
yrealThe vertical position to draw the deformation
xscalerealThe horizontal scale multiplier to apply to the deformation
yscalerealThe vertical scale multiplier to apply to the deformation
rotrealThe rotation to apply to the deformation, in degrees
alpharealThe alpha transparency to apply to the deformation

Description#

Draws a deformation which has been previously processed with sys_deform_perform.

As this script is run automatically by any deformation scripts tailored to specific entity types, it is almost never necessary to run sys_deform_draw manually.

See Animations for a list of included deformation scripts and how to make your own.