playMaker

Author Topic: Draw path on tiles for TurnBase style movement  (Read 882 times)

Croesus

  • Playmaker Newbie
  • *
  • Posts: 9
Draw path on tiles for TurnBase style movement
« on: April 18, 2021, 03:26:26 PM »
Hello everyone. I am making a prototype for a TurnBase game and I achieved these;

- Select a player and enable the tiles that player can move to
- Select a tile and player move there

But for some time I am trying to figure out how can I draw a line when hovering the tiles. Like in the pictures.

Like this:


Mine:
https://disk.yandex.com.tr/i/Q2k3cWRUS0I1lA

Plancksize

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 75
Re: Draw path on tiles for TurnBase style movement
« Reply #1 on: April 21, 2021, 03:14:44 PM »
You can use a Line render I guess.
If it's just two points you can  use Draw Line action for that. If you need a path you can use Draw Path Line Renderer. (you can find those on Ecosystem)
In any case you'll need to get the Tile to World position of the tiles you want to draw the line on.
« Last Edit: April 21, 2021, 03:18:12 PM by Plancksize »