|
Hi, Im currently doing game , and one element on that game is building rooms. Try this webplayer to see my current progress. Webplayer link HERE As you can see, you can build "walls" (way too big ) by clicking any free tile on grid. But im looking for similar building system what sims games has. Check this picture First player click on any tile edge on game, see A. then player will move mouse cursor to the B, and there appears"ghost" wall between point A and B , if player clicks second time, real wall appears. How to do it? I have tried to find a logic behind this but looks like i cant figure this out without help. Im not asking that you write code to me , im asking you show me the way or give idea how to continue! Please, help me :(
(comments are locked)
|
|
My approach to this would be to actually use two different classes for the 'wall'. The first class is the 'ghost wall', and the second one is 'real wall':
(comments are locked)
|
|
Yes indeed i have 2 prefabs for walls , and marker is underwork, its not problem. But now main problem is how i draw that path from point A to point B and how to allways snap build marker on corner of tile? I hope you guys can give answers !
(comments are locked)
|
