Create a world

Setup our first topdown scene

1

Save as a TopdownTemplate scene

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.

It should look like this:

2

Create an Entry Data

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.

3

Add a Camera Boundarie Component

For that create a new empty Gameobject, we can call it “Cam”. Add to that object a component called CW_CameraBoundaries. You can now adjust in editor view the boundaries of the topdown camera. If no boundaries are set, then camera will not work.

Setup a Character that you can interact with

More information needed

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.

Last updated