Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Free up sprite/animation slots?
#2
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
Reply


Messages In This Thread
RE: Free up sprite/animation slots? - by megamarc - 04-07-2021, 05:49 AM
RE: Free up sprite/animation slots? - by megamarc - 04-07-2021, 07:02 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)