Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 3: Finishing the Game Loop

Make a TreasureController Entity

You don’t have access to this lesson

Please register or sign in to access the course content.

To make a complete mini game, we need a script that is in charge of the whole game. The script doesn’t need a voxel object, but scripts do need to be part of an entity to run in dot big bang. And the easiest way to make an entity is to drag in a new voxel object.

Having a voxel object for the TreasureControllerScript will also make it easy to select in the world, since you have something to click. But you can always find objects in the Search for entities panel. 

In this case, I used this 2D Scroll Voxel object, which you can remix here, but you can use any voxel object you want. Once the game is finished, we’re going to delete it. 

  1. Drag any new voxel object into your world.
  2. Select the new object and open the Entity panel.

In the Entity section, rename the object to TreasureController.