How do i get effect when gems come together in godot?

I’m create gems puzzle game, In my game there is requirement that 2×2 matrix gem will group and then it will convert in power gem. check below image.

enter image description here

I’m new in game development, so anyone can point me out ? any suggestion or link will be helpfull.

Thank you