Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

Thanks for playing!

a simplified rundown of the process would be:

  1. break if the player is not holding down the mouse
  2. get the mouse world position then floor it to an int get tile coords
  3. break out of the function If the player is hovering over a square that is blocked by a collision tile
  4. break out of the function if the player is hovering over a tile that is already in the list
  5. break out of the function if the player is hovering over a tile that isn't adjacent to an existing list entry 
  6.  Add the position to the list
  7. redraw arrow path

So basically take that process and sprinkle in 2 AM spaghetti coding to taste and you got my script

Thank you so much!