How to Use LSL Scripting to Animate Objects in Second Life

Second Life uses Linden Scripting Language (LSL). At its most complex, it takes an expert to use it. However, with some practice, even beginners can animate their "prims" (primitive objects, geometric shapes that are the building blocks of Second Life). Follow these steps to learn how.

Things You'll Need

  • Second Life Client download
  • Computer with Internet access via DSL or cable modem
Show More

Instructions

  1. Use the LSL Tutorial

    • 1

      Choose a membership tier at the Second Life Web site's home page (see the Resources section below). The lowest level is free, and three others require monthly fees.

    • 2

      Install the Second Life download, if you have not already done so. The green icon that appears on your desktop is your entryway to Second Life.

    • 3

      Enter Second Life and click on "Tech Support." Type "LSL scripting" into the search box. In the results list, find "Where Can I Get Scripting Help?" Go from there to "LSL (Linden Scripting Language) Portal," then to "Tutorials" and "Getting Started in LSL."

    • 4

      Read this beginner's tutorial all the way through, especially how to run "Hello Avatar." If you need more help, follow one of the links to other articles on the subject.

    • 5

      Go back to your entry page. Click "Search" and then "Places." Type "Sandbox." Open one of the entries in a new window so that you can refer back to the "Hello Avatar" tutorial.

    • 6

      Right-click any place on the land that is not occupied. From the circle menu, choose "Create." A wand will appear. Touch it to the ground with your mouse to make a box.

    • 7

      Click on the box and find the "Edit" option. Open "Content" under that, and select "New Script." A default script will appear.

    • 8

      Follow the "Hello Avatar" script from the tutorial. Be sure to type the programming in the right order: default, event, 11Say, touch_start, 11Say, end.

    • 9

      Close "Edit." You should see the words "Hello Avatar" coming from the box. Put the mouse over the box. It should say "Touched."

    • 10

      Keep practicing. Don't be discouraged if the script doesn't work the first time. Creating and animating objects is a complex skill.

Tips & Warnings

  • LSL can function only within an object.

  • If you are familiar with programming in JavaScript, you have a head start, since LSL is similar in structure.

  • You can build and script objects only on land, but you need not buy the land. You can create and animate objects in areas called "sandboxes," which are open to all Second Life members.

  • A programming script must be completely error free or the script won't work. It takes time and practice to get LSL right.

  • Building in a public "sandbox" means that others may be able to access your constructs. Use the tech support search function to find out how to protect your creations from intruders (see Resources below).

Related Searches:

Comments

You May Also Like

Related Ads

Featured