Download

Paper2D Tilemap, which Tile is the Player on

Hello,

as the Title already says, i try to find out on which tile the Player is standing on…

To explain further, i have a Tilemap (X,Z) that is made up of platforms ground, water (some with collision and some without… etc.
And now i want to find out over which tiles the Player is (a jump and run char) is, and on which tiles he is standing on.

I did not find any functions that might make it posible and i searched also…

My way to go now was to get the Player Location, and find the nearest tile Center Location… which is not a good way considering that the tilemaps can get bigger, and i need to do this on 2000 and plus tiles… i want to add functionality to the tiles, and this in a random generated manner…

thanks for any advices
regards
Hubi