Hexagonal movement

Hello,
I’ve never been using unity before and now I decided to try making a simple 2D game. I’m trying to make hexagonal movement by one tile using mouse click but there is no progress, so I hope to get some help here. I’ve watched some YouTube tutorials, but I think I need something concrete to make an understanding.

I was wondering if it is more simpler to make it by creating tiles as 3D objects or is there any way to make it using hexagonal grid?

I hope you understood my problem.

You’ll need a way to determine which tiles are directly next to your ball and allow them to be clickable, then determine which tile has been clicked and move the ball in its direction.

One way I can see this being done is by creating a group of 6 invisible hexagons surrounding the ball, then parenting this group to the ball so that it constantly follows it.

Each of these child hexagons can contain a script that performs an OnMouseDown action which references the movement script attached to the ball, telling it what direction to move in.

You can use this to get a tile position Unity - Scripting API: GridLayout.CellToWorld
then use MoveTo or even just set your ball to that position