Hey guys, I was wondering if there’s a way to do this in babylon? Basically I’d like to have the ground have a grid
Like so:
And have to where if I tell the mesh to move to 2,3 it would move to the center of this tile:
But in a 3d perspective? I’m not sure if I’m making much sense here, so feel free to ask questions and I’ll clarify as best as I can?
I’m unsure if anyone here is familiar with the ‘RuneScape’ movement where if you click on tile (3422, 3200, 1) you’d walk to that tile?
For functionality may I suggest start at thread from the old forums?
It has some sample code in one of the first reply links.
The most basic way is to create a multi-dimensional [[x,y,units],[x,y,units],[x,y,units]] array or if getting fancy a set of bitmap where each pixel is an X Y and color is representative of one game object(s))
There are a few additional forum threads along the same vein of setting up an RTS map from both the old forums and this one.
@Calsa thanks for pointing out the grid material, hadn’t seen that yet as for the rest, the forum post you linked to, didn’t help very much unfortunately. I’m hoping for a playground example