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

Guide

Getting Started

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

Editor

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

Features

  • 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

  • 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

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

Scripting

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

Advanced Topics

  • Build Troubleshooting
  • Performance Optimizations
  • Home
  • Guide
  • Documentation
  • Machines
  • Tagged Machine

Tagged Machine

Table of Contents
  • Starting Tags
    • Examples
  • Using Tagged Machines
    • Examples

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

Tagged machines are Unity components that are added to game objects. They’re mostly used for starting game mechanics on objects through schematics, like destroying it after losing all health – on the player, this should trigger a game over, while the enemy should just be destroyed.

A tagged machine component can be added through the components menu (Makinom > Machines > Tagged Machine) or the scene wizard (Add Machine > Tagged Machine). A game object with a tagged machine is represented in the Unity scene view by this gizmo icon:

You can learn more about machine components in general and their basic settings here.

Starting Tags #

A tagged machine is started by schematics or timelines through passing on one or more tags, i.e. short identification texts.

The tags the machine can be started with are added in the machine’s settings – depending on the schematic/timelines call, either all or only one of the tags passed to the machine must match the machine’s tags.

Examples #

A schematic tries to start tagged machines on a game object and uses the following tag (only one needed):

  • damage

The game object has 3 tagged machines:

  • tagged machine A, tags: destroy
  • tagged machine B, tags: collect, item
  • tagged machine C, tags: damage

Tagged machine C will be started by the schematic.

A timeline tries to start tagged machines on a game object and uses the following tags (all are needed):

  • move
  • fast

The game object has 2 tagged machines:

  • tagged machine A, tags: move
  • tagged machine B, tags: move, fast

Tagged machine B will be started by the timeline.

Using Tagged Machines #

Tagged machines are useful to start different game mechanics on different game objects through the same logic. Using a tag to start machines on different game objects allows using other schematics or timelines for the same tag.

E.g. the death tag can cause a barrel to explode with an explosion particle effect, an enemy to fall dead to the floor and vanish, and the player to display a game over message and restarting the level.

Examples #

A projectile with a collision machine tries to start tagged machines on the game object it hit using the tag hit.

The projectile hits different objects:

  • player
    The player’s object int variable health is reduced by the local int variable damage of the projectile’s machine (by sharing local variables with the tagged machine).
  • barrel
    The barrel is destroyed with an explosion particle effect and an explosion audio clip.
  • wall
    Nothing happens.

A schematic reduces the object int variable health of a game object – if health falls to 0 or below, the schematic tries to start tagged machines on the game object using the tag death.

The schematic is used on different objects:

  • player
    The player’s death is animated, a game over HUD is displayed and the level is reloaded after 10 seconds.
  • enemy A
    The enemy’s death is animated and the player’s score is increased by the enemy’s object int variable points.
  • enemy B
    The enemy’s death is animated by an explosion that also damages everything in a range of 10 world units, and the player’s score is increased by the enemy’s object int variable points.

Machines
Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Updated on December 16, 2020
Table of Contents
  • Starting Tags
    • Examples
  • Using Tagged Machines
    • Examples
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 (68)
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!