Jibble

Author Topic: [Feature Suggestion] Delete unused sprirtes  (Read 74 times)

Slasher

  • slasher
    • I can help with AGS tutoring
    • Lifetime Achievement Award Winner
    • I can help with scripting
    • I can help with story design
    • Slasher worked on one or more games that won an AGS Award!
    •  
    • Slasher worked on one or more games that was nominated for an AGS Award!
[Feature Suggestion] Delete unused sprirtes
« on: 13 Aug 2019, 21:01 »
It would be useful if there was a 'Delete all unused sprites' facility..

I'm sure most of us import graphics that we don't use...

Re: [Feature Suggestion] Delete unused sprirtes
« Reply #1 on: 14 Aug 2019, 07:19 »
Very good idea. In my last games, I think I have made animations that are not used in the final game, but I don't dare to delete sprites because I am afraid of deleting some in use and make the game crash. That would be useful in order to decrease the sprites file size.

Re: [Feature Suggestion] Delete unused sprirtes
« Reply #2 on: 14 Aug 2019, 08:04 »
Isn't the problem that AGS can't detect if a sprite is being used for, e.g., an object? I've had instances of AGS telling me that a sprite was unused when it actually wasn't (you do get a warning message, to be fair.)

In order for a "delete all unused sprites" functionality to be implemented, I'm guessing that our amazing devs would first have to find a way to actually find all the usages of a sprite in a game...

(But once again, just a reminder that this is just a newbie's guess and I might be completely off!)

Snarky

  • Global Moderator
  • Private Insultant
    • Best Innovation Award Winner 2018, for his numerous additions to the AGS open source ecosystem including the new Awards Ceremony client and modules
    • Snarky worked on one or more games that won an AGS Award!
    •  
    • Snarky worked on one or more games that was nominated for an AGS Award!
Re: [Feature Suggestion] Delete unused sprirtes
« Reply #3 on: 14 Aug 2019, 08:34 »
AGS can tell if a sprite is assigned in the editor, but there's no way to tell if it's set in the script.

cat

  • Mittens Baronet
    • cat worked on one or more games that won an AGS Award!
    •  
    • cat worked on one or more games that was nominated for an AGS Award!
Re: [Feature Suggestion] Delete unused sprirtes
« Reply #4 on: 14 Aug 2019, 08:45 »
AGS can tell if a sprite is assigned in the editor, but there's no way to tell if it's set in the script.

This. I often assign a sprite number to objects which can't be detected by any cleanup feature. Removing those sprites would break the game.