Hi, I’m having a strange scope problem that clearly shows I’m still having a few teething problems with Lua 
Basically I’m trying to swap these two grid positions around (just a table with x and y), after storing off the position on line 1 and then setting the first tiles position to the second on line 2 I will then set the second tiles position back to the stored off position but this is where my problem lies. After setting the first tiles position the stored off value is also changed to the new position for the first tile (this may not make sense).
[lua]local tempPos = self:getGridPosition()
self:setGridPosition(otherTile:getGridPosition())
otherTile:setGridPosition(tempPos ) [/lua]
Edit: I can provide code if needed.
[import]uid: 5833 topic_id: 1200 reply_id: 301200[/import]