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. if(this.hits(that)){}
replace “that” with the name of the clip that will be colliding with the object and then “” will be -1 if its left and 1 if its right