I am currently working on a tower defense game in Unity (2018.4). I am very new to this software and C#. Right now I have an avatar that moves around my game screen via a NavMesh plane.
The orange box in my pic below shows where the transparent plane is sitting. My game map (brown and green) consists of textured tiles.
My avatar is the gray thing you see on the screen. I use NavMeshAgent and a couple of scripts to move my avatar around based on where my mouse clicks on the game map.
Below is a video of my avatar moving.
I’m trying to get help for the following two issues.
-
when I move my avatar to a more elevated place (i.e. higher stack of tiles) he disappears inside the tile (see gif). I want the avatar to either be standing on top of the tile or on a lower level next to it.
-
when I click on a tile in the game map to direct my avatar to move there, I want some indication or animation of where I clicked. (i.e. an arrow or circle on the spot of my mouse click).
Any help on this would be greatly appreciated.