Apc.lua

apc.lua (advanced player collisions)
This library adds a couple of new block types to SMBX, as well as advanced player collision detectors.

It requires the Colliders and Vectors libraries in order to work. To install, just unpack apc.lua and drop it into the LuaScriptsLib.

Download Latest Version

apc.lua can be called with: Values

Variables to access

Block Functions
These are functions which change the behavior of blocks. Note that each function may only be used once, but it will accept a table for its argument. These functions must be called in onLoop, but to prevent lag, it is recommended to only run them on the first loop of the level. (See usage example below.)

Usage Examples
This will cause block-8 to become a rope-type block and block-1 to become a spinjumpable spike block.

This will destroy all blocks the player touches except the ones on which he is standing.