Basic LSL Scripting in Second Life

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
880 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 23, 2011

Hi everyone! I've been wanting to create a video like this for a while! It is a scripting video for Second Life. If you are an educator, or student interested in elearning how to script, here is a quick tutorial to get you started. If you like this video, please Facebook "Like" it, or tweet it out, share it, etc - Thanks!

Link to this comment:

Share to:

Uploader Comments (fire2006)

  • Good video in the start then I got totally lost when you started jumping to states ... I don't even know what jumping to a state means ...

  • @laborsina Hi! Thanks for watching my video! Also, I could have explained more about states! Let me try now, as they are a bit tricky to get the first time around. To understand states, consider, that when this script is run, it first starts at the line where state_entry is written in the default state. It will then execute (run) all the code "inside" the state_entry event. That is, all the code between the state_entries "{" and "}" curly braces. The script will then wait until (see next)

  • @fire2006 (continued frm lst cmment) The script will then wait until another event is triggered. In our example, the only other event we are waiting for, is the "touch_start" event. When this happens, our script executes the command "state morning" which is in the touch start event. "state morning" causes the script to "jump" to the first line of state morning's state_entry event code, executes the code there between {}, then waits 4 other events WITHIN the morning state. I hope this helps!

see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • this kind of helped me but... IM STILL CONFUSED!

  • Really nice. Easy to understand. I jumped when I heard that IM sound. haha. I'd love to learn more about jumping states if the person inputs the right answer to a question in local chat. Maybe keep using the morning, afternoon, evening script and so it keeps building on the basic example. Great work Fire.

  • That is great - really useful!! Thanks :-)

  • Nice overview.

  • The video was awesome! I can't wait to see the next one. Would you be interested in giving a workshop via the Sloodle at Integrating Technology for Active Lifelong Learning (IT4ALL) Moodle.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more