Essential game objects

Even though we covered how to export your level to be used in Pure Gamemode, you may find that when you launch your level, you are not in the correct location in the map. This quick recipe will show you how to create a Spawn point for Pure Gamemode and also remind you the importance of having a physical surface to spawn on.

Getting ready

  1. Have My_Level open inside of Sandbox (after completing either the Terrain sculpting or Generating a procedural terrain recipe).
  2. Review the Navigating a level with the Sandbox Camera to get familiar with the Perspective View.
  3. Review the Placing the objects in the world and Refining object placement recipes.
  4. Have the Rollup Bar available in your Sandbox layout and ready.

How to do it...

Unless your game supports some sort of Player flying mechanic, we recommend you choose a location where the Player can stand when he initially spawns within your level. Any physical surface (Floor, Roof, Terrain, Rock, and so on) will do.

To place a Spawn Point follow these steps:

  1. Go to your Rollup Bar.
  2. Open the Objects tab and click the Entity button.
  3. Open the Others folder in the Entity List.
  4. Place Spawn Point in the location you wish to spawn the player.

How it works...

This initial spawn point will automatically work as the main spawn point for your map in Pure Gamemode (as long as you keep to the default SinglePlayer.lua gamerules). If you jump into your map from the Launcher now, you will be spawned at this location.

Any additional spawn points will not function unless there is some game logic hooked into their functionality.

See also

  • The Running a map from the Launcher recipe
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.237.79