I drag sprite and when something is going wrong, for example i drop to wrong place, how sprite can return to previous position
Set old x,y coordinates if move fails set position to old x,y coordinates
Develop games in your browser. Powerful, performant & highly capable.
thanks, solution was so close
No problem glad I could help...