Tilemap position lag

Developing my game I noticed a strange thing, at first I thought it was fault of my ECS setup, but I managed to isolate the problem. So: each frame I set x and y of a tile to coordintates of a sprite. However, there is a single frame lag when setting a position of tile, and it moves out of sync with the sprite. This only affects flash. Neko and html5 work just fine. The issue doesn’t exist when it’s a sprite following a sprite, or tile following a tile (though I tested that using single tilemap, maybe happens with two different tilemaps as well).

Code (had to create a repo as image is required for a tile to reproduce this):

Press A and D on flash and compare it to neko to see what I have in mind.

Fixed, thank you for the sample :slight_smile: