part_type_sprite - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Description

Sets the sprite of the given particle type.

Parameters

Parameter Data Type Description
ind integer index of the particle type
sprite integer index of the sprite
anim boolean whether the sprite should be animated
stretch boolean whether the animation should be stretched over the lifetime of the particle
random boolean whether a random subimage should be chosen as the starting image

Return Values

void: This function does not return anything.

Example Call

// demonstrates setting the sprite of a particle type
part_type_sprite(type_exp, spr_explosion, true, true, false);

NOTOC

⚠️ **GitHub.com Fallback** ⚠️