Block:collidesWith
This function allows you to read what side of a block is touched by a given player in SMBX.
Arguments
| Block:collidesWith(Player player) | Returns the side that player collided with.
0 = No collision, 1 = Player on top of block, 2 = Player touching right side, 3 = Player touching bottom, 4 = Player touching left side. |
|---|