Creating a Level

From Gothongs Wiki
Revision as of 14:59, 10 April 2024 by Panda (talk | contribs)
Jump to navigationJump to search

This is a tutorial that lets you create a very basic level with no scripted events. This level sets up a spawning spot, spawns monsters and adds an exit.

Step 1: Build your level

This is not something I can help much with. I am sure there are tutorials that teach you how to use the SL building tools. But here are a few suggestions:

Create a 10x10x0.5 prim as a base, and build everything 10m above it. It reduces the chance of you spawning the level on top of somebody. Here is a basic setup with a root prim "anchor" and a platform for players to walk on.

Build your level and make sure that the "anchor" remains the root prim by linking it last.

Step 2: Add the scripts

  1. Unpack your GoThongs Devkit that came with your GoThongs unpacker. Wear the devhud and unpack the level scripts.
  2. Drag _MAIN, got Level, all the slave scripts, Trigger and TriggerSensor into your level. Also wear your GoThongs HUD!
  3. Hold ctrl while you press enter after typing the following into chat (shout): debug got Level
  4. You will get a message saying "Updating level code..." and if you edit your level you will find that it has added additional scripts!

Step 3: Add a spawn point

  1. Click the Spawn button on your dev HUD. Then right click and sit on the P1 mesh that spawned.
  2. Edit yourself into a position where you want your players to start.
  3. Say "add" in chat to save your spawn point. You will get a message like "Saved start point at <-12.57,-10.92,10.92>".
Positioning yourself with P1

Step 4: Adding the exit.