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
thanks, solution was so close
Develop games in your browser. Powerful, performant & highly capable.
No problem glad I could help...