Instructions for creating a new map in your game development project and setting up various gameplay elements to enhance the player experience. Follow these steps to create a new map and configure essential elements within it.
Creating a New Map
To create a new map, follow these steps:
Click on "File" in the menu.
Select "New Level."
You'll be presented with various options; choose the one that suits your project's needs. For a large world, select "Open World," and for a small scene, choose the "Basic Level" option.
Set Default Server Map
In your project settings, navigate to the Maps and Modes section.
Update the Server Default Map setting with the map you've just created. This ensures that your new map is set as the default server map for your project.
Adding Player Start
Open your newly created map.
To add a player start point, follow these steps:
Choose the "Place Actors" panel.
Select "Player Start" from the available options.
Drag and drop it in your scene. This determines where players will spawn in your map.
You may set the position of the player start based on your imported environment
Adding Crosshair
Open the Level Blueprint for your map.
Add the following script to ensure that players see a crosshair while playing.
Crosshair is mandatory if you wish to utilize the default interaction system present in our SDK.
Or you can copy and paste this code directly within the event graph of the level blueprint.
Adding a Close UI Actor
From the Content Browser navigate to Plugins > Infinity Void Content > Utils, select the BP_CloseUI actor.
Drag and drop it in your scene. The purpose of this actor is to communicate with the frontend to close the loading screen.
You can adjust the delay by changing the delay value in the actor's details.
If you wish to close the loading screen based on some event you may use the same logic present in the BP_CloseUI actor.
Adding an Exit Volume (Optional)
For a more immersive experience, you can add a volume actor called BP_Exit by navigating to Plugins > Infinity Void Content > Utils. Placing this actor and configuring the volume inside it will allow players to return to the city if they enter this designated area.
Linking to the Lobby Map
Navigate to the Lobby map, located in Plugins > Infinity Void Content > Map.
In the Outliner select BP_InfinityVoidSDK and go to Details.
In the Gameplay Level field, choose the map you've just created. This links your new map to the lobby map.
Lobby map is the application's default map. This map is not visible to players. It only servers the purpose of opening the main level which you create.