Who Is Online

2
Online

Friday, 19 October 2018 00:08

Tint on Touch

// Simple opacity level changing script.
// Script cycles through the values on touch.
//
// Kimm Paulino
// Written for Tanisha Benoir, Feb 2012
 
integer gLowestLevel = 0;    // This is the most transparent setting (0, 1, 2, etc)
integer gSteps = 4;          // This is the number of steps to support
 
// Do not change below here
integer gOpacityLevel = 0;  
 
default
{
    on_rez (integer start_param)
    {
        llResetScript();
    }
 
    touch_start(integer num_detected)
    {
        gOpacityLevel++;
        if (gOpacityLevel > gSteps)
        {
            gOpacityLevel = gLowestLevel;
        }
        float opacity = (1.0/(float)gSteps) * gOpacityLevel;
        llSetAlpha(opacity, ALL_SIDES);
    }
}

 

Flash Scratch to SL - Your Scripting Tool

Script ImageNeed to write a LSL script and don't know how to script?  I know I hate trying to get my head around LSLS when I an in a time crunch. So why not give Flash Scratch a try! Its a great tool for learning and scoding your own scripts for Second Life without having to pay someone to do it and without a crash course in LSL

A Huge thanks to John Bennet of ATLAS Institute at University of Colorado and Eric Rosenbaum at MIT for writing Scratch for SL to begin with.

Read more: Flash Scratch to SL - Your Scripting Tool