How to create new level
After you've opened the editor but before you've done anything else, you should read Editor basic controls.
Once you've finished reading that, you should open the necessary windows. These include (but are not limited to) Scene instances tree, Type tree, Object properties and Error list. If you read the page mentioned above, you know how to open them and what's their main function.
Contents
Create a new level
1. Create a new map from File > New (Ctrl+N)
2. From your Types window, find and drag a RockCollisionHelper to the scene and set its ModelComponent property 'VisibleInGame' to true (check the box)
3. Drag an InvisibleCheckpointEntity on top of the RockCollisionHelper and set its property MissionStartCheckpoint boolean to true (check the box)
4. Add an AmbientLightEntity somewhere into the scene
5. By pressing the play button (F5), you'll be able to start your level
Where to find everything is listed in Entities needed.
Saving
Once you are happy with your changes save them by pressing Ctrl+S or File > Save Map.
Save the map into data/mission/missionname folder where the "missionname" is your mission name. Make sure that your level gets saved into "missionname" folder and the file name is "missionname.fbe".
Example: If you would like to do a mission: "mymission", save it into: data/mission/mymission/mymission.fbe
Entities needed
- RockCollisionHelper (TypeRoot->InstanceBase->Entity->ObjectEntity->object->Helper->CollisionHelper->RockCollisionHelper)
- CameraSystemPrefabEntity (TypeRoot->InstanceBase->Entity->PrefabEntity->CameraSystemPrefabEntity)
- NOTE: When creating levels for Shadwen, the CameraEntities are set up automatically!
- InvisibleCheckpointEntity (TypeRoot->InstanceBase->Entity->GameplayEntity->CheckpointEntity->InvisibleCheckpointEntity)
- AmbientLightEntity (TypeRoot->InstanceBase->Entity->LightEntity->AmbientLightEntity)
Layers and Settings
Layers
The editor has different layers in the same way as e.g. Photoshop. It's entirely possible to use only one layer for every object in the level, and this might not be a problem in small test levels. When creating a more complex level however, it's crucial to use the correct layer for each object in the scene to avoid confusion.
In this simple level we have only four objects, but to emphasize the good practice, each one of them goes into a separate layer. RockCollisionHelper should be put into the collision layer (layer 2), CameraSystemPrefabEntity to the camera layer (layer 4), InvisibleCheckpointEntity to e.g. respawn layer (layer 5) and AmbientLightEntity to the default layer (layer 1).
You can choose which layer you want the object to be in by either:
- choosing the correct layer from the layer toolbar () before adding the object from the Type tree or by
- going to the properties of the object that you've added to the scene and choosing the correct layer from there with the drop-down list next to "Layer" property.
Settings
Once you've added all the objects to the correct layers, there're some settings that need to be changed in the properties of the objects. Since we're not using any textures on this map, the player character seems to be running on air, unless the collision helper is visible. Making the RockCollisionHelper visible to the player can be done from the ModelComponent property of the RockCollisionHelper. Find the property "VisibleInGame" and set it to True (tick the box).
You should also scale the collision helper so it's large enough to run around. The scale tool (keyboard shortcut: 3) will help you with that.
After you're satisfied with the scale and placement of the RockCollisionHelper, you need to change the InvisibleCheckpointEntity to be the starting checkpoint of the level. Each level always needs one, and only one "MissionStartCheckpoint". You can make the checkpoint to be the starting checkpoint of the level by going to the properties, opening TrineCheckpointComponent (NOTE: In later versions of the editor e.g. Shadwen Editor, the the component name has been changed to GameCheckpointComponent) and setting "MissionStartCheckpoint" to true (again tick the box).
When these settings are changed, you can test play the level by either:
- pressing to start from the checkpoint you chose as the "MissionStartCheckpoint" or by
- pressing to start from the camera position.
You can return to the editor view by pressing .
After this, you can add more objects to your level from the Type tree or by copying existing objects (only RockCollisionHelper at this point, because you shouldn't duplicate the other objects in this level unless you know what you're doing). You can also change the color and intensity of the ambient light from it's properties.
Instant Kill Area
Adding Instant Kill Area under your level makes the player character mortal, when e.g. falling to a pit.