im making a game and idk how to make it to where you can get hit
if (this.hits(clipname)) {
// collision
}
For multiple clips:
const clips = clipname.clones.filter(c => this.hits(c));
if(clips.length > 0) {
// collision
}
1 Like