Create a world
Last updated
Last updated
In the project window go to Modding → _InfinityModding → ModdingRoot and double click on Modding_TopdownTemplate.
Then go to FILE -> and click Save As, set the name you want, and make sure to save it INSIDE the “Mod 1” folder we just created.
The “Mod 1” folder must contain all assets of your mod. So save the scene there.
The name of this file must be “Entry” to consider it as the first scene in the mod.
It should look like this:
As it is the first scene in mod, we need to create an CG_EntryRoot component to setup some necessary datas.
For that, create a new Gameobject named “Entry Data” and add the component CG_EntryRoot.
In this component, you will see various fields:
Player Initial Spawn Point
This is the initial spawn position of the player, you will need to add a transform that setup the initial pos.
Player Initial Spawn Direction
The direction player is facing when spawning for the first time.
Player Initial Movement State
The movement state of player when entering for the first time
Player Hp
The player hp in battles.
As you can see, the entry scene contains various examples, feel free to check them one by one. In our case, let's disable them and create from scratch a character that you will be able to interact with.