User Tools

Site Tools


public:t-vien-14-1:lab_8_materials

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:t-vien-14-1:lab_8_materials [2014/03/19 08:52] hannespublic:t-vien-14-1:lab_8_materials [2024/04/29 13:33] (current) – external edit 127.0.0.1
Line 88: Line 88:
  }  }
 }</code> }</code>
 +  - **Turn Player into Prefab** Drag your ''NetworkedPlayer'' object into the project panel to create a Prefab and **delete** the original instance in the Hierarchy view.
 +  - **Create a Spawn Point** Create a new empty game object and call it "SpawnPoint". Place it well **above** the plane. 
 +  - **Finalize Networking** Choose the ''NetworkManager'' and drag the ''NetworkPlayer'' **PreFab** into the ''Player Prefab'' property and drag the ''SpawnObject'' game object into the ''Spawn Object'' property.
 +  - **Build Stand Alone** Go to **File->Build Settings...** and press **Player Settings...**. Under **Resolution** check the box marked **Run in Background**. Build a stand alone application and run it. Press **Start Server** in the application. Make sure you can move the box with the arrow keys. Start a second instance of the application but chose **Start Client** this time. Make sure you can move the cube, and see it move in both applications!
/var/www/cadia.ru.is/wiki/data/attic/public/t-vien-14-1/lab_8_materials.1395219145.txt.gz · Last modified: 2024/04/29 13:33 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki