Skip to main content

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

Thanks for the addon it's very useful, I've added a few buttons to it as I like to use the keyboard as little as possible and between this and the "Ring tool" by apsyll I can do that. But I'm trying to add "delete" to it but I don't know how to do it. Is there a way it can be done?

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!