Hi everyone! Sorry to bother, but I need help!
Well, my intention is to develop a game where your character must collect eggs scattered at the stage and take them to a checkpoint. When you pick up one egg (by touching it), it follows you. Get another one and it will also follow you, right after the last egg you caught, making a line.
The problem is: After getting the second egg, the first one stops following you properly, staying fixed at one point, instead of going to the correct Player fixed point (It looks like the lerp formula is being ignored somehow).
I don't know what to do to fix it. Could you guys give me a hand?
This is my code so far:
<img src="http://i10.photobucket.com/albums/a126/shinobi_br/my_code_zps5f866edf.jpg" border="0" />
And a link to play the demo:
dl.dropbox.com/u/12937330/follow_test/index.html
Thanks in advance!