makotok/Hanappe

Return updated object-data

Closed this issue · 1 comments

If an object has moved from it's initial position during gameplay, the new position (x/y - table[n].mapObject.x / table[n].mapObject.y) isn't updated when calling "TMXMapView:findObjectsByName(name)".
(Might be the case for other functions as well)

The data returned from the function will be the initial x/y position of the object, from when the map was first loaded.

It would be useful to have the function return the updated object-data.

Just figured out I can use either "getLoc" or "getMapLoc" on the table.
No need to reply.