Skip to content

Examples

zaddo67 edited this page Nov 2, 2023 · 2 revisions
Directory Next
Directory Chat Example

Examples have been provided to demonstrate how Alloy works.
IMPORTANT: Ensure you turn on Run in background in your project settings.

This is the most basic example and a great starting place for new developers to Forge Networking. It will go over a program for sending messages between 2 (or more) connected machines.

This example shows how a developer can go about spawning objects so that other connected machines are able to spawn and identify the same objects.

The complex example shows many key concepts and will require more exploration of the code in order to better understand how all the network messages work. Below is a list of key features of the complex example:

  • Spawning proxy players
  • Changing scenes over the network
  • Real time view of other player's camera
  • Simple interpolated character controller
  • In scene network objects, even when changing between scenes
  • Persistent network objects between scenes (player characters)
  • Spawning of non-networked objects over the network

Directory Next
Directory Chat Example
Clone this wiki locally