Hey guys this is my first time posting on the forums. I have looked on every inch of the internet to try to find out how to do this but its just not there.
I am not one to say, “I’m building a game like another” but if you know of the games Blockland, Roblox, Etc that it the type of game i am building. I need to be able to create a block in game place it when i let off the mouse. When it places it needs to place on some sort of snap system. I also need to be able to drag as well as duplicate any of these blocks. There are many different types of blocks and block sizes. I really hope someone is able to help. I have a very basic understanding to programming but i am not able to wright my own code yet. Either C# or JavaScript is what i need this code in. Any help is Highly appreciated. My game is near Beta stage and this is all its missing.
To sum it all up, I am looking for a Grid system to snap blocks onto the ground and each other, I need a way to duplicate blocks, And a way to drag blocks on the grid. If you have Any other questions please comment and i will answer as soon as possible.
No.
Make object…: http://docs.unity3d.com/Documentation/ScriptReference/Object.Instantiate.html?from=GameObject
Where you click…: http://docs.unity3d.com/Documentation/ScriptReference/Camera.ScreenPointToRay.html
Snapped to unit grid…: http://docs.unity3d.com/Documentation/ScriptReference/Mathf.Round.html