(First, I’ve scoured the Lime docs and tutorials and still don’t get it, so decided to ask here. Also, I’m using the latest (released) version of Lime and Corona build 715.)
There’s screenPosition and worldPosition and I can’t figure out how they relate. There’s also gridPosition and I think that’s the actual X/Y coordinates of a given tile but what are screenPosition and worldPosition?
On a related matter, here’s a chunk of code I put inside a tap event:
[lua] local mapx, mapy = map:getPosition()
map:slideToPosition(mapx, mapy, 2000)[/lua]
If I am getting the position of the map and then setting the map position to the same place, the map shouldn’t move, right? Except it does – starts moving diagonally down. I’m not getting any error messages when I run the code.
Not sure if this is related to not knowing what screen and worldPosition are, but it doesn’t help.
Any hints?
Jay
[import]uid: 9440 topic_id: 22825 reply_id: 322825[/import]