Figure out which row/column the actor is at


  • *
  • Posts: 12
I have a tile based game and have been playing around with the tile api. I created a scene behavior to hide tiles based on line of sight (like Ultima 3/4) but I need to get the correct offset for the columns and rows for the current view. or at least the row/column of the center or where the actor is positioned. Am not seeing how to do this so far. Assuming the upper left tile of the scene is 0,0 and my scene is set to 128 x 128 tiles. Thanks.