Skip to content

cf_sprite_play

Category: sprite
GitHub: cute_sprite.h


Switches to a new aninmation and starts playing it from the beginning.

void cf_sprite_play(CF_Sprite* sprite, const char* animation)
Parameters Description
sprite The sprite.
animation Name of the animation to switch to and start playing.

CF_Sprite
cf_sprite_update
cf_sprite_is_playing