I was trying to make a drag & drop object move back into it's original place (not just apper there) once is released.
You could use lerp in set position.
Object set position to: lerp(self.x, target.x, speed you want it to move 0-1), lerp(self.y, target.y, speed you want it to move 0-1)
It helps me move things smoothly from self to target.
This one?
https://dl.dropboxusercontent.com/u/659 ... _drop.capx
Thanks guys, worked great!
Is there any book or manual about this kind of expressions?
I never heard about lerp.
Yes ---> https://www.scirra.com/manual/126/system-expressions
Develop games in your browser. Powerful, performant & highly capable.
Thanks MadSpy!