A feature in my game is that you can build stuff like walls, floors, etc. I've never done this before so how could I approach this problem?
I've already tried this tutorial: https://scriptinghelpers.org/blog/creating-a-furniture-placement-system but it doesn't appear to work (like I can't get anything to show up, and it doesn't even print any errors).
I would like items to stack on top of each other and snap to a grid, along with showing a preview of the item when you drag it around. They shouldn't overlap with each others' hitboxes. I have several types of blocks that aren't the same dimensions but are all integers. The plot I'm working with is invisible with collisions off.
Just for simplicity let's pretend that I have a single type of item that you can build with by clicking on the screen and right-clicking to remove. I can figure out how to implement building with other items later. I can also figure out a save system later, so no need to help me with that right now.
I know this might seem like me asking you to make a whole game for me but I really just want some tips, helpful links, etc. since I couldn't find anything useful. I would highly appreciate a few code snippets helping me go in the right direction.
Let me know if my question is confusing or too vague.
Thanks for your time :)

1 comment
Thanks! I'll go try it out