Domino effect

Hi , i have a puzzle game , similar to match 3 gems example.

I want that the pieces do not break all at once, but gradually breaking chain effect, and if there is a bifurcation continue along the two paths at the same time.

Is this possible in LUA? Any idea where to investigate?

For example, if you have stored it in grid (table) you can do like this for example.

-Find first gem

-Check all closest neighbours if are also valid gems

-Call function for removing neighbours but with delay

-Perform remove function on first gem without delay

-on gem removal check all it’s neighbours  before, repeat all above and continue, incrementing delay time

For example, if you have stored it in grid (table) you can do like this for example.

-Find first gem

-Check all closest neighbours if are also valid gems

-Call function for removing neighbours but with delay

-Perform remove function on first gem without delay

-on gem removal check all it’s neighbours  before, repeat all above and continue, incrementing delay time