Grid layout and navigation. Go to the center of a tile

Hi! I see this asset in the madness sale and hope you can solve my question to see if it fits my project.

I need my player and NPC’s move with pathfinding in a “grid layout” and always in fixed positions to the center of a cell in the grid. Could this navigation be done with this asset?

So, If I click with the mouse (in pc) or touch the screen (in mobile or tablet) the player must go to the center of the tile where I clicked last time.

As well it should work in 3D so the player could climb a ladder or going up for a ramp until the center of the tile selected.

If some example could be posted of some link to see how is this done, It would very helpful to me so I can decide my purchase.

Thanks in advance for your help.

Carlos

Hi

Moving to the center of a tile is no problem, that’s just a setting to tweak. The movement script depends on what kind of movement you want (smooth/fixed along grid connections/able to handle physics/not using physics/etc). Climbing ladders can be done, but how you do it depends a lot on the game, there is unfortunately not any examples right now for climbing ladders and grid graphs.

Hi Aron,

thinking in a isometric tile game with 1meter x 1meter tiles (cube tiles for ground and cube player and npcs that always are in center of the tile) . And having diferent heights (with ladders or ramps to go up and down). Could you put some guide lines (with code snipets and/or components to use) on how this could be done with this asset?. What tweaks you refer and general things to do an initial setup.

Thanks for your quick response.

Hi

This could probably be handled using some tricks in the movement script. Firstly I think the AILerp movement script as a base will be best for you (it sounds like the kind of game that would use it). For the ramps, you would need no change. However for ladders, those could be detected in the movement script’s Update method by checking if the segment the AI is traversing has a very high slope (and is thus likely a ladder), that could trigger a special code path that uses e.g an animation or some more specific system to move up the ladder.