How do you detect collisions of a individual sides for a square?
the following code works fine for let and right but i cannot figure top and bottom. any help would be appreciated…
(for detecting collisions from the side)
if (event.other.x < displayObj.x) then
– object collided with was on left on this object