Workflow of AppGameKit commands:
(1) -> agk::CreateSprite(1, agk::LoadImage("media\imageA.png");
(2) -> agk::DeleteSprite(1);
(3) -> agk::CreateSprite(1, agk::LoadImage("media\imageB.png");
This gives the following error:
Failed to add image media\imageB.png into image id 1 - image already added with media\imageA.png
Already done:
- Confirmed if sprite is actually deleted using agk::GetSpriteExist(1);
Question: I thought, the ID 1 would be available/free to add a new image since it has already been deleted. Am I wrong? If yes, what's the workaround besides using another ID.