part_type_sprite - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Sets the sprite of the given particle type.
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 |
void: This function does not return anything.
// demonstrates setting the sprite of a particle type
part_type_sprite(type_exp, spr_explosion, true, true, false);
NOTOC