I have created a 2D tile based map editor. It's perfect for me. I love it and it gets the job done. However I was watching this video and I didn't understand one thing. When the user place multiple tiles of the same type, how does the editor merge them into one? I just can't understand how to program this feature.
BTW I know that the map editor is in 3D.
Can someone please explain how this works?