Hi everyone! I have a big question: how do I make a construction grid, like classic RTS?
i.imgur.com/CXtdP1Q.gif - example
How do my structure "cling" to the invisible grid?
Thanks for the answers!
Check the how do I FAQ, you should find answers about RTS and making a grid quite easily.
You can use rexrainbow 's SquareTx plugin. It handles all of that stuff behind the scenes.
Develop games in your browser. Powerful, performant & highly capable.
SquareTx plugin only can get position along grids, it is not enough for RTS game.
Hybridd
I believe you just need to snap the construction object to the grid while dragging by rounding the position to the nearest multiple of the grid square size.
Example capx
I guess I misunderstand the scope then. We are building an RTS game, and your squareTx in iso mode works fabulously for us.
Hybridd I believe you just need to snap the construction object to the grid while dragging by rounding the position to the nearest multiple of the grid square size. https://db.tt/YELZo9GJ Example capx
https://db.tt/YELZo9GJ Example capx
Thank you for the information! This was driving me crazy!