04-07-2021, 05:49 AM
Remember that you don't create sprites, instead you use (configure) and disable preallocated sprites.
A sprite is set up with TLN_SetSpriteSet():
http://www.tilengine.org/doc/md_sprites....totoc_md92
A sprite is disabled/released with TLN_DisableSprite():
http://www.tilengine.org/doc/md_sprites....otoc_md103
You can manage sprite indexes by yourself, or ask Tilengine for a free sprite to use with TLN_GetAvailableSprite():
http://www.tilengine.org/doc/group__spri...3687c762c8
A sprite is set up with TLN_SetSpriteSet():
http://www.tilengine.org/doc/md_sprites....totoc_md92
A sprite is disabled/released with TLN_DisableSprite():
http://www.tilengine.org/doc/md_sprites....otoc_md103
You can manage sprite indexes by yourself, or ask Tilengine for a free sprite to use with TLN_GetAvailableSprite():
http://www.tilengine.org/doc/group__spri...3687c762c8