Mouse Control / Placement

Has anyone with this or older engines, created anything that allows you to track mouse movements and place tiles down via a mouse click.

For example, so the player has the option to place furniture at any spot in their home.

They choose from a list of items, the furniture item followers the mouse cursor around, and when you click, it places it in that position.

Thank you!
Not everyone has played SimCity, and even those who have, your description is too vague to know what it is exactly you want to accomplish.

Please provide enough detail so even people who haven't played this game understand what your goal is.
Not everyone has played SimCity, and even those who have, your description is too vague to know what it is exactly you want to accomplish.

Please provide enough detail so even people who haven't played this game understand what your goal is.

Edited, thanks!
You just need to store the cursor's x and y position in two variables then use an event spawner to spawn it at those coordinates.
Thank you for the replies, those two are perfect!

Original thread: https://forums.rpgmakerweb.com/threads/mouse-control-placement.162402/