How do tilemaps work exactly in the editor and events, and how can I use it with procedural generation?

I’ve been attempting to make a game with procedural generation.
Would it be possible to make a tilemap to make the procedural generation look better?
(Refer To This)
For example adding edges to the sand you can’t collide with.
I also would like a breakdown of how tilemaps would work, and how I would add them to my game.
Also, I’ve been having a bit of trouble finding a way to prevent the offset of the screen when you collide with the sand, how could I fix that? Also the animation is staying as the walking animation when you collide with the object, which is not intended.
(Fixed)