After having done some testing, peeking through the lime-tile.lua code and printing several variables to the terminal, I’ve discovered that the grid-position is actually updated. The problem seems to be that the tile-properties are not brought along to the new tileposition. They somehow seem to be left behind at the initial position of the tile. I’m doing a property-check on my crates called Tile.isPushable to see if there is a collision with a crate and to check whether the space behind it is empty. But when using the tile:move routine instead of the tileLayer:swapTilesAtPositions routine, the crate-properties stay put at the initial position of the crate-tile. Whenever my player-character enters the initial position of the crate the crate moves, but not when he actually bumps into the crate.
richard9: I tried to regrab the information by calling getTileAt() after moving the tile, but this didn’t work for me. I’m not using setImage() though. I’m not sure why the tileLayer:swapTilesAtPositions works either. Tried to look at the lime-code to figure it out but haven’t found anything yet. Maybe it has to do with this being a command operating on the tileLayer, not only on a single tile? Don’t know. However, when using the tileLayer:swapTilesAtPositions command it seems that the tile-properties are moved along with the tiles when they switch places.
[import]uid: 129287 topic_id: 14353 reply_id: 96193[/import]