This is a question for the Corona staff. I’ve read on your tutorials that the object:translate(dx,dy) method is more efficient than assigning new x,y coordinates.
May I know how much more efficient is the translate method? Because right now I’m just using the translate method by replacing the usual
[lua]object.x,object.y = newX,newY[/lua]
with
[lua]object:translate(newX-object.x,newY-object.y)[/lua]
And in what way is the translate more efficient? Memory usage? Timings? [import]uid: 108204 topic_id: 27876 reply_id: 327876[/import]
