Copy link to clipboard
Copied
Hi,
I created a drag and drop game in Animate CC with HTML5 canvas. How to make an object (red box) snaps to targets (white boxes)? It's not just snaps on correct target but also incorrect target, then shows response (correct or incorrect).
Best regard..
assuming all have the same center registration point and (target_mc is defined)
this.redbox.x = this.redbox.target_mc.x;
this.redbox.y = this.redbox.target_mc.y;
Copy link to clipboard
Copied
assuming all have the same center registration point and (target_mc is defined)
this.redbox.x = this.redbox.target_mc.x;
this.redbox.y = this.redbox.target_mc.y;