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.
Open the Makinom editor and navigate to Schematics. Create a new schematic, there is no additional setup needed in the Settings.
Add Node > Game > Player > Set Player
This node will set a game object to be the player.
And that’s it for the schematic. Click on Save Schematic to save it, e.g. as SetPlayer.
Now that you’ve got a schematic that sets a game object to be the player, you can use it whenever needed.
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.
The rest of the execution settings can use the default values:
© 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!