and i was facing a moveable tile calculation problem.
i have fully implement tiled map, and store the tile height (Movement point required by each tile) in the map.
please refer to picture below, where 2, 3 specify the tile' required movement point(MP), where no specify are required 1 MP.
blue ball are the player(character) with 3 MP
red are moveable tile.

player have 3 movement points in this sample
my problem is how to obtain the moveable tile by giving character position(x, y) and MP?











