Interpolate problems!

Roll Up! I am having difficulty with two major features as you will see in the video! I think I will also need a better name!

As you can see I have two problems
1) when you click a button your character starts moving towards it however when you click a button straight after it like teleports to that button.
2) when there is a wall in the way of a buton and you click it the collide wall goes out the window and it goes straight through the wall.
Please Help!

As you can see I have two problems
1) when you click a button your character starts moving towards it however when you click a button straight after it like teleports to that button.
2) when there is a wall in the way of a buton and you click it the collide wall goes out the window and it goes straight through the wall.
Please Help!
Comments
If you did that here is what happens,
You click a buttonX, the actor starts to interpolate it's position to buttonX but just before it concludes, you click on another buttonY. And when you click on buttonY you set another target for interpolation and since very little time is left for interpolation to finish (like .20 seconds) the actor moves from vicinity of buttonX to buttonY in 0.20 seconds instead of completing the interpolation at buttonX.
If you can confirm that this is what is happening I might offer a solution.
http://www.mediafire.com/imageview.php?quickkey=sci05m0ij8z8jp2
http://www.mediafire.com/imageview.php?quickkey=4kr3ikj4gk5juv8
http://www.mediafire.com/imageview.php?quickkey=sci05m0ij8z8jp2
http://www.mediafire.com/imageview.php?quickkey=b0dqevbfthtghoz
http://www.mediafire.com/imageview.php?quickkey=ic7t2911zawlv7n
Under Roll prototype;
In Move rule;
Instead of interpolating use accelerate towards.
Use game.X1 and game.Y1 for destination;
and add a Stop Rule inside the Move rule;
All conditions are valid
Attribute self.position.x = game.X1
Attribute self.position.y = game.Y1
Change attribute - self.motion.linear.velocity.x to 0
Change attribute - self.motion.linear.velocity.y to 0
if you have trouble understanding that; you can pm me