Table of Contents

 
RemoveSprite
 

Purpose

Removes a given sprite from a given layer

 

Protoype

void CTileMngr::RemoveSprite (string str_sprite, int i_layer)
 

Parameters

sprite the ID of the sprite to remove
layer the layer the sprite is on
 

Description

This function removes a given sprite ID from a given layer. Removing the sprite ID will stop the sprite from being rendered with the map, but the original sprite object will remain intact.

 

Use

CTileMngr tile_mngr;
tile_mngr.RemoveSprite("my_sprite", 2);
 

Prev: RemoveLayer
Next: RenderMap