Floating red letters forbidding entry. Borked. Broken. Glossary. Boxhead ... You tube videos. Search on Second Life. Second Life Classes InWorld. Blogs ... – PowerPoint PPT presentation
Larger objects are created by linking multiple prims
Rotate
Control
Duplicate
Control D
Size changes with distance/perspective
Transparency
Edit menu fill in transparency textbox up to 90
Hollow
Select object tab
Choose hollow percentage rotate object to see results
31 Building
Linking
Shift and left click on multiple prims
Control L
Colors change
Last prim selected is yellow primary prim
Will now move as one object
Max number of linked prims 255
Unlinking
Control Shift - L
32 Scripting
LSL Linden Scripting Language
Similar to JavaScript, PHP and C, but not as full featured
Prim
Scripts exists inside of a prim
Rez a prim and then right click to open the edit menu
Select the Content tab
Click on New Script button
Window appears with a default script
Also, go to Inventory, select Scripts folder and right click for new script and write/save.
33 Scripting
Avatars
Movement such as gestures, walking and dancing are not scripts
Animation override (AO)
Upload file describing skeletal positions and movement
File format called BVH
34 Scripting
Default New Script
Default // This is a state can have multiple
state_entry() // Event handler-Runs when you enter a statellSay(0, "Hello, Avatar!") // Predefined functiontouch_start(i nteger total_number) // EventllSay(0, "Touched.") //Predefined function
35 Scripting
Summary
States
Default
Others defined by programmer
Events
Every object at any given time is in one of the states as defined in your script
Event handlers are called in the current state
Event touched, sit on, walked past within certain distance
Functions
Functions within the event handler within the state determine what actions will take place
36 Scripting
// default state
default
state_entry()
llSay(0, "i'm on!") //
llSetColor(, ALL_SIDES) // sets all sides to red
touch_start(integer total_number)
state off
// another state
state off
state_entry()
llSay(0, "i'm off!")
llSetColor(, ALL_SIDES)
touch_start(integer total_number)
state default
37 Scripting
Variables
Integer
Float
String
Key
Special kind of string similar to a pointer identify objects
Vector
3d position in space
Rotation
List
38 Scripting
Variables
Must be declared before use, typed
Local
Defined within function temporary
Global
Defined outside of a function
Case sensitive
Typecasting
Integer counter
(string) counter
No library system
Mono open source project allows .NET and use of other programming languages for scripting supported by Linden Labs