dot big bang

Developer API
Menu
All
  • Public
  • Public/Protected
  • All

In Doodle Safari we have set up a custom player that all players use.

Important Note: In order for player save data to work you will need to set the “Player Template” in your game to a player template that includes the dbb_player_state script. All of the systems in the game communicate with this script to save data.

To build your own Player Template you can do the following:

  1. While editing, play the game
  2. Switch to the “Fly Camera” using the button or by pressing B
  3. Select your player
  4. In the “Entity” panel click “Unlink from Template” and hit OK on the warning dialog that appears
  5. Add a dbb_player_state script if needed by clicking the "Open" option under the script icon and searching for dbb_player_state
  6. Click the “New Template” button and give it a name
  7. Click the “Save” button
  8. Delete the copy of the player

The “Player Template” field can be found in the “Save Options” panel under “Additional Game Options”. If you don’t see this you may need to click the “Advanced” button in the lower right corner of the editor.

The Save Options Panel

  1. Click the “Player Template” field
  2. Navigate to your Player Template and select it
  3. If you want the Player to see their own avatar check the "Player Uses Avatar" box

Now when you run the game your template will be used!