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.
Develop games in your browser. Powerful, performant & highly capable.
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