MPUZ: LinkIDs

From Mario Fan Games Galaxy Wiki
This information is subject to change.
MPUZ
Mpuz logo.png
Development Main Page
Basics
Intermediate
Advanced
  • none
Reference
[Edit]


LinkIDs are integers MPUZ uses to determine which objects are logically related. For instance, a P-Switch may share a LinkID with a group of Bricks, changing the latter into Coins when the former is pressed.

LinkIDs are associated with the object:trigger() method, and the onTriggerX event. LinkIDs must be positive for the trigger method to have any effect, which also means they must be greater than 0.

The LinkID for an object can be retrieved by accessing self.linkid. It can also be set to a new value to relink this object with a new set of objects.