Block:collidesWith

From Moondust Wiki
Revision as of 23:14, 1 August 2018 by Textmonster404 (talk | contribs) (Created this page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.