Makinom - Game Toolkit for Unity
  • Features
  • Showcase
  • Guide
    • Documentation
    • Tutorials
    • Extensions
    • API
  • Makinom 1
    • Tutorials
    • Plugins
    • API
  • Support
  • Forum
  • Get Makinom

Getting Started

5
  • Introduction
  • First Steps
  • Game Starters
  • Components Overview
  • Upgrading a Makinom 1 Project

Editor

8
  • Makinom Editor Overview
  • Node Editor
  • Asset Sources
  • Editor Section
  • Base/Control Section
  • Game Section
  • UI Section
  • Templates Section

Features

14
  • Schematics
  • Dialogue Importer
  • Schematic Nodes
  • Formula Nodes
  • Languages
  • Input Keys
  • Audio and Music
  • Game States
  • Pooling
  • Saving Game Objects
  • Scene Objects
  • Save Games
  • Variables
  • Selected Data

Machines

13
  • Machine Components Overview
  • Animation Machine
  • Animation State Machine
  • Application Machine
  • Auto Machine
  • Collision Machine
  • Global Machine
  • Interaction Machine
  • Render Machine
  • Tagged Machine
  • Template Machine
  • Tick Machine
  • Trigger Machine

UI System

12
  • UI System Overview
  • UI Layers
  • UI Layouts
  • UI Boxes
  • UI Input Filters
  • HUDs
  • Flying Texts
  • Text Codes
  • Unity UI Module
  • HUDs: Content Providers
  • HUDs: Conditions
  • HUDs: Click Actions

Scripting

6
  • Scripting Overview
  • Code Extensions
  • Custom Save Data
  • Custom Component Save Data
  • Custom Nodes
  • Starting a Schematic

Advanced Topics

2
  • Build Troubleshooting
  • Performance Optimizations
  • Home
  • Guide
  • Documentation
  • Machines
  • Global Machine
View Categories

Global Machine

2 min read

Learn more about global machines and what you can use them for.

Unlike machine components, global machines aren’t added to game objects or animator controller states. They’re added in the Makinom editor (Base/Control > Global Machines) and can be started everywhere and anytime.

Using Global Machines #

A global machine isn’t bound to a game object and is available globally, i.e. they can be started in all scenes and at all times. Like machine components, global machines will play a schematic.

Starting a Global Machine #

A global machine can be started by schematics (Start Global Machine node) or HUD click actions. Starting a global machine via schematic will allow selecting the Machine Object and Starting Object.

Additionally, global machines can be started automatically. This is handled by the global machine’s Execution Settings.

Call #

This global machine type will only start when called (e.g. by a schematic). All other global machine types can also be started upon call.

E.g. a schematic will check for game over conditions and handle ending the game. The schematic needs to be started by various other schematics.

Setting this mechanic up as a call global machine allows starting it whenever needed, without adding it to a specific game object.

Auto #

The auto global machine will start automatically based on time and defined conditions. You can define a timeout between condition checks to e.g. only run the machine once per minute (60 second timeout).

Starting the machine can depend upon Game State Conditions and Variable Conditions.

E.g. a schematic handles a custom time system, increasing minutes, hours and days of in-game time (using variables).

Setting this mechanic up as an auto global machine with a timeout of 5 will increase the in-game time by 1 minute every 5 seconds.

Additionally, using the conditions, the time progression can be paused when needed, e.g. during cut-scenes or scene changes.

Key #

The key global machine will start when a defined input key is used. When the input key is used (e.g. Escape pressed down), the global machine will start if the conditions are valid.

Starting the machine can depend upon Game State Conditions and Variable Conditions.

E.g. a schematic handles a menu (Show Dialogue node) that should be displayed when the player presses the menu input key (e.g. using the Escape key).

Setting this mechanic up as a key global machine allows calling the menu without adding it to a specific game object. The menu is available whenever needed.

Additionally, using the conditions, the menu call can be blocked when needed, e.g. during cut-scenes or scene changes.

Scene #

The scene global machine will start when changing the scene. The machine can optionally be started in the old scene (i.e. before changing scenes) or in the new scene (i.e. after changing scenes), additionally the machine can run before or after fading the screen.

The Scene Change Type defines which scene changes can start the global machine, e.g. starting for All scene changes, only from Scene Changers, when loading the game or for Custom scene change types (defined by scene changers and Load Scene nodes in schematics).

Starting the machine can depend upon Game State Conditions and Variable Conditions.

E.g. a schematic saves the game to the auto save slot. The game should be saved automatically whenever the player enters a new scene.

Setting this mechanic up as a scene global machine (running in the new scene) will save the game whenever a new scene has been loaded.

Additionally, using the conditions, the auto save can be prevented when needed.

Machines
Share This Article :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
Updated on December 16, 2020
Table of Contents
  • Using Global Machines
    • Starting a Global Machine
      • Call
      • Auto
      • Key
      • Scene
Sitemap
  • Features
  • Showcase
  • Guide
    • Documentation
    • Tutorials
    • Extensions
    • API
  • Makinom 1 Hub
    • Tutorials
    • Plugins
    • API
  • Support
  • Forum
  • Get Makinom
  • Contact
  • Blog
  • ORK Framework
  • gamingislove.com
Categories
  • Makinom 1 (97)
    • Tutorial (97)
      • 2D Platformer (14)
      • 2D Roguelike (8)
      • Breakout (6)
      • How-to (34)
      • Match 3 (6)
      • Schematic (4)
      • Scripting (6)
      • Space Shooter (11)
      • Survival Shooter (8)
  • News (11)
  • Release (83)
Search

© 2015 Gaming is Love e.U.

Disclosure: This site may contain affiliate links, which means I may receive a commission if you click a link and purchase something that I have recommended. While clicking these links won’t cost you any money, they will help me fund my development projects while recommending great assets!