2 query vars: array(3) { ["userSlug"]=> string(0) "" ["diagramSlug"]=> string(0) "" ["diagramId"]=> string(0) "" }
Pulling & Pushing Resources • Machinations.io

✑ Nodes Properties

    Documentation

    Pulling & Pushing Resources

    Pulling & Pushing Resources

    A Node can be set to either Push or Pull Resources, function to what action it needs to take once activated.

    info

    Set this attribute of a Pool in the drop-down menu in Functional > Action:

    When a Node fires, it will try to pull Resources through any inputs connected to it. The number of Resources it pulls is determined by the rate of the individual input Resource Connection—the number beside the line.

    success

    Nodes default to pull mode.

    Alternatively, a Node can be set in push mode. In this mode, when the Node fires, it pushes Resources along its output connections.

    info

    A Node in push mode is marked with a p

    Passive Pools that have only outputs are automatically set to push mode, in which case the p marker is omitted.

     

    If a Node is trying to pull more Resources than there are at the far end of its inputs, it will handle it in one of two ways:

    1. By default, a Node pulls as many Resources as it can, up to the flow rates of its inputs. If not enough Resources are available, it still pulls those that are.
    2. Alternatively, a Node can be set to pull all Resources. In this mode, when not all Resources are available, none are pulled.
    info

    Nodes that are in pull all mode are marked with an & sign.

    These rules also apply to pushing Nodes: by default, a pushing Node sends as many Resources as there are available out along its output Resource Connection up to the output’s flow rate.

    info

    A pushing Node in all mode sends Resources only when it can supply all of its outputs. This means that Nodes in push mode might be marked with both a p and an &.

    ​🔧 Hourglass Example

    In the video below, using Pools and Resource Connections, we constructed a simple hourglass.

    The top Pool (A) is passive and contains 5 Resources, while the bottom Pool (B) is automatic and starts without any Resources. Every Step (in this case 1 second), B will pull one Resource from A, until all Resources have moved from A to B.

    Connected reading:

    Contents

    Used by 2500+ game studios all over the world

    350+ universities & academic institutions use Machinations

    All Rights Reserved © Machinations S.àr.l

    8217, Mamer, Luxembourg, accounts at BGL BNP PARIBAS, VAT number: LU30464284

    We use cookies for marketing and analytics. We also share information about your use of our site with our marketing and analytics partners who may combine it with other information that you’ve provided to them. You consent to our cookies if you continue to use our site. Learn more