How do i do collsion on both sides?

i dont know what to do im working on a game can someone please give me a example like a project

What do you mean by collision on both sides

he means how to detect if object touches left or right side of another object

Use the overlapX data.
this.lr=0 if(this.hits(that)){ this.lr=Math.sign(this.hits(that).overlapX)}
replace “that” with the name of the clip that will be colliding with the object and then “this.lr” will be -1 if its left and 1 if its right

Memory = [null]