Object Animation Script

Written by: Headmaster
//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(,2); //moves the object -1 meter on y axis
     llSleep(3);                                //waits 3 seconds to allow movement
 llMoveToTarget(,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(,2);
 //           
//     llSleep(3);
//
  //       llMoveToTarget(,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