Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

According to the GUI definition of Aseprite, by default the Delete button calls the Clear command. Therefor, you should get a functioning “Delete” button on the On-Screen Controls if you add one that calls it. The code would look like this:

    :button{
        text="Delete",
        onclick=function()
            app.command.Clear()
        end
    }

If you encounter any issues, or need some assistance feel free to let me know ✌️

I was just about to add your code but saw that the command for "delete" was "clear" and the addon already had a "clear" button I just never used it. I used it and is functioned just as would I expect the delete button to. So it had a "delete" after all, thanks for the reply though.

I think you’re justified as even I didn’t remember that the “Clear” button was already there. 😅 Glad your issue solved!