How do I place blocks while playing? Also, How do I make a shop for the blocks to place?

I want to make a sort of like a Clash of Clans game. The game is not created yet, but I have ideas. Can someone please show an example game on how to place a block WHILE playing buy just right clicking? And, please show in that example a shop like thing that once you buy something, you are able to place it.

Thanks

1 Like

sorry I don’t know I am trying to make a 2D version of mineraft