I was wondering, I have a few transitions that have an oncomplete event. Mostly these are used to decide if a tile should keep moving. A simple example of a bullet:
transition.to(bulletVisual, {time=PLAYER\_SPEED/4, x=bulletVisual.x, y=bulletVisual.y+tileSize,onComplete=bulletMove})
It all works fine, but my question is, what is the most optimal way to get the physical tile inside of that onComplete event. I’ve been using the x and y values, and getting the physical tile via getTileAt. I have to do a full search since my tiles move and it’s pretty rough on performance to have to do that every time I’m moving a tile. It was too big of an issue when I was dealing with simple tiles, but I think it’s going to be a huge sink when it comes to something that moves quickly and often like a bullet tile. I feel like I’m doing it wrong. Any thoughts or am I doing it correctly? [import]uid: 114566 topic_id: 29258 reply_id: 329258[/import]