Orbits.lua

~Not yet released or pushed to the SMBX2 repo. for Beta 4.~

orbits.lua allows the creation of various NPC circles. Originally intended for coin circles (as can be seen in NSMBWii) but as can be seen in the list of args below, any ID can be used. At this time it is suggested that you only create coin/Rupee circles, Boo circles, and firebar circles. There is no guaranteed support for all NPCs but feel free to do what you wish with this API.

Download Latest Version: Not yet available to be downloaded

For an example, see the level included which has fully documented code.

Installation
Place the file orbits.lua into the LuaScriptsLib folder.

Documentation
To enable the orbits library for a specific level, add this line to lunadll.lua: This will load the orbits API.

The Creator Function
This function creates an orbit. Only create orbits onStart; they SHOULD NOT be created in onTick, onDraw, etc. (though some exceptions may apply).

The following are named arguments usable to create an orbit:

Other Functions
The following functions are also available for use via this library: