Who Is Online

1
Online

Tuesday, 26 September 2017 06:19

Object Animation Script

//Written By Fuzionor Engawa of Fuzion Technologies
//Prepared and commented by Blazed Undercity of Fuzion Technologies

//OBJECT MUST BE PHYSICAL FOR ANIMATION TO WORK
//OBJECT MUST BE PHYSICAL FOR ANIMATION TO WORK

default
{
    state_entry()
    {
      vector mypos = llGetPos();   //gets the current position
      do{
          
//OBJECT MUST BE PHYSICAL FOR ANIMATION TO WORK
          
llMoveToTarget(<mypos.x,mypos.y - 1,mypos.z>,2); //moves the object -1 meter on y axis
     llSleep(3);                                //waits 3 seconds to allow movement
 llMoveToTarget(<mypos.x,mypos.y + 1,mypos.z>,2);//moves the object 1 meter on y axis
     llSleep(3);                                //waits 3 seconds to allow movement

//OBJECT MUST BE PHYSICAL FOR ANIMATION TO WORK
 
  //FOR UP AND DOWN MOTION USE THIS CODE
  // delete the '//' marks from in front of the code below.
  // put '//' marks in front of the 4 Purple codes above (llMoveToTarget and sleep)
  
  //       llMoveToTarget(<mypos.x,mypos.y,mypos.z - 2>,2);
 //           
//     llSleep(3);
//
  //       llMoveToTarget(<mypos.x,mypos.y,mypos.z + 2>,2);
 //           
//     llSleep(3); 
     
//OBJECT MUST BE PHYSICAL FOR ANIMATION TO WORK
     
     ///////TIPS AND TRICKS///////
//You can use combinations of movement to achieve desired results

// Move the code into the touch start, so object moves when touched

//OBJECT MUST BE PHYSICAL FOR ANIMATION TO WORK     
            }
while(1);
    }

    touch_start(integer total_number)
    {

    }
}


//OBJECT MUST BE PHYSICAL FOR ANIMATION TO WORK

 

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