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

Guide

Schematics

  • Setting the Player
  • Simple Character Controller
  • Mouse Orbit Camera
  • Random Waypoints

Breakout

  • Breakout Tutorial Introduction
  • 01 First Steps
  • 02 Player Controls
  • 03 Bricks
  • 04 Losing a Life
  • 05 UI Setup
  • 06 Sound Assignments

Space Shooter

  • Space Shooter Tutorial Introduction
  • 01 First Steps
  • 02 Player Move Controls
  • 03 Player Weapon Controls
  • 04 Hit and Destroy
  • 05 Asteroids
  • 06 Game Controller
  • 07 UI Setup
  • 08 Player’s Destruction
  • 09 Enemy Ship Mechanics
  • 10 Enemy Ship
  • 11 Moving the Background

Match 3

  • Match 3 Tutorial Introduction
  • 01 First Steps
  • 02 UI Setup
  • 03 Generating the Level
  • 04 Matching Jewels
  • 05 Destroying Jewels
  • 06 Game Controls
  • 07 Jewel Setup

Survival Shooter

  • Survival Shooter Tutorial Introduction
  • 01 First Steps
  • 02 Player Movement
  • 03 Player Shooting
  • 04 Enemy Mechanics
  • 05 Setting up the Enemies
  • 06 UI Setup
  • 07 Player’s Death
  • 08 Enemy Spawner

2D Roguelike

  • 2D Roguelike Tutorial Introduction
  • 01 First Steps
  • 02 Generating the Level
  • 03 Level Generation Machines
  • 04 Player Controls
  • 05 Walls, Food and Exit
  • 06 Game Manager and UI Setup
  • 07 Enemy Mechanics
  • 08 Game Over

2D Platformer

  • 2D Platformer Tutorial Introduction
  • 01 First Steps
  • 02 Player Movement
  • 03 Camera and Background
  • 04 Shooting Rockets
  • 05 Enemy Mechanics
  • 06 Setting up the Enemies
  • 07 Enemy Spawners
  • 08 Player Damage and Fall Remover
  • 09 Health Pickup
  • 10 Bomb Pickup
  • 11 Bomb Prefabs and Lay Bombs
  • 12 Pickup Spawner
  • 13 UI Setup
  • 14 Background Animations
  • Home
  • Guide
  • Tutorials
  • Schematics
  • Setting the Player

Setting the Player

Table of Contents
  • Setting up the Schematic
    • Set Player
  • Using the Schematic
    • Auto Machine
      • Start Settings
      • Machine Execution Settings

This simple schematic is used to set a game object in the scene as Makinom’s player game object.

When not spawning the player through Makinom (using the Player Settings in Base/Control > Game Controls), you can set a game object in the scene to be the player using the Set Player node.

Setting a game object to be the player isn’t required, but can be useful for your game mechanics. This allows checking if a game object is the player or starting collider/trigger machines only by the player.

You can download the finished schematic here.

Download Schematic

Setting up the Schematic #

Open the Makinom editor and navigate to Schematics. Create a new schematic, there is no additional setup needed in the Settings.

Set Player #

Add Node > Game > Player > Set Player

This node will set a game object to be the player.

  • Destroy Old Player
    Enable this setting.
  • Player Object
    Select Machine Object.
    We’ll set the machine’s game object to be the player.

And that’s it for the schematic. Click on Save Schematic to save it, e.g. as SetPlayer.

Using the Schematic #

Now that you’ve got a schematic that sets a game object to be the player, you can use it whenever needed.

Auto Machine #

The most common use case is having an auto machine on the game object that should be the player. Add an auto machine component to the game object (e.g. using the scene wizard: Add Machine > Auto Machine) and change the following settings.

Start Settings #

  • Start
    Enable this setting.
  • Enable
    Enable this setting.

Machine Execution Settings #

  • Schematic Asset
    Select your schematic setting the player (e.g. SetPlayer).

The rest of the execution settings can use the default values:

  • Execution Type
    Select Single.
  • Update Type
    Select Update.

Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Updated on August 2, 2021
Table of Contents
  • Setting up the Schematic
    • Set Player
  • Using the Schematic
    • Auto Machine
      • Start Settings
      • Machine Execution Settings
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!