Copy link to clipboard
Copied
I need the code for this, how could I possible do this?
I'm a begginer and I am very interested as to how I can create this.
Copy link to clipboard
Copied
using the same initialization code shown in your previous post, use:
// in your drop listener function
if(square.hitTestObject(whatever)){
square.x=whatever.x;
square.y=whatever.y;
} else {
square.x=square.initX;
square.y=square.initY;
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now