2 query vars: array(3) { ["userSlug"]=> string(0) "" ["diagramSlug"]=> string(0) "" ["diagramId"]=> string(0) "" }
Game State Awareness • Machinations.io

⚙ Unity Plugin (UP) & API

    Documentation Key Features

    Game State Awareness

    Game State Awareness

    warning

    This feature is under heavy development and is considered unstable. We expect to have a working example set up in the coming weeks.

    In the vast majority of game projects, you will have multiple diagrams describing your mechanics.

    With our Game Engine Plugin, you can use multiple Machinations diagrams within the same game, and get values from them based on Game State.

    success

    Example: a game in which the Player fights Ghouls

    During day-time, Ghouls do normal damage against the Player, while during twilight & night-time, they do higher damage.

    With Game State Awareness, your game will be able to take Ghouls’ Damage (as well as any other mechanics) from 2 different diagrams: one defined for day-time mechanics, one for night-time.

    The only thing your game needs to do is to notify our Game Engine Plugin about Game State changes via the OnGameStateChanged method of the IGameLifecycleSubscriber interface.

    Here’s a code snippet showing a section of a Machinations Game Object’s manifest, which shows how to set up this feature.

    Here’s a code snippet showing a section of a Machinations Game Object’s manifest, which shows how to set up this feature.

    In the above snippet, the “Damage” of a creature will be taken from 2 different Diagrams. One Diagram will be connected to the “LowDamage” StatesAssociation while another to “HighDamage”.

    info

    This feature is close to being finalised, with full architectural support already completed. We will focus on this as soon as we’re done launching our UP Unity Pilot through the Machinations Early Adopter Program.

    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