Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Hello! I'm here to ask about grids again.

I've got the grid set up as one of those check mark booleans cuz I like the look of it and you can just double click it, but I couldn't figure out how to make some code that can set all of the checks to false / 0 for me. Trynna make a little button that can just wipe the slate clean for a new day.

this is my best attempt at getting a checkmark  to change, but it doesn't do the trick as is.

(+2)

One way to set an entire column of a table to a numeric value is to perform an assignment like this:

grid1.value.done:0

This expression produces a new, updated table. If we want the change to be reflected in the grid, we need to assign the result to the grid's .value attribute, so our whole "clear tasks" button script might be

on click do
 grid1.value:grid1.value.done:0
end
(+2)

Thank you, it works now! I'm gonna keep fooling around with it to try and make sure I've got it down.