Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

powerpoint

thecoolguy Melody
Registered User
Join date: 15 Jan 2009
Posts: 16
06-10-2009 13:30
Hi
If there are 10 images as slides of the powerpoint. How to write the script for when a user clicks it once all the slides will be displayed one after the another for every 2 seconds.

I mean when a user clicks the slide the first image appears on the billboard for 2 seconds and it is replaced by the 2nd image and after 2 seconds it is replaced by the 3rd image and so on.
Its very urgent. Thanx in advance.
Ryker Beck
Photographer & Designer
Join date: 23 Feb 2007
Posts: 57
06-10-2009 23:19
You could probably modify this code to add a timer(); event that will change the texture every 2 seconds:

CODE

// PPT script, advances pages on touch

// Retrieved from Free SL Scripts on www.gendersquare.org/sl

integer access=1; //Change the value of access. Access=0 means owner only to advance the pages, Access=1 means all can
integer choice;
integer number;
default
{
state_entry()
{
llSetText(llGetObjectName(), <0,1,0>,1);
number = llGetInventoryNumber(INVENTORY_TEXTURE);
choice = 0;
}
on_rez(integer param)
{
llResetScript();
}
touch_start(integer numbert)
{
if(access || llDetectedKey(0)==llGetOwner())
{
if (choice>=number)
{
choice =0;
}
string name = llGetInventoryName(INVENTORY_TEXTURE, choice);
if (name != "")
{
llSetTexture(name, ALL_SIDES);
llSetText(llGetObjectName()+"\n"+(string)(choice+1)+"/"+(string)number+" name: "+name, <0,1,0>,1);
++choice;
}
}
}
changed(integer change)
{
if(change & CHANGED_INVENTORY)
{
llResetScript();
}
}
}
// This script was modified by spiderONE (spider Corleone - owner of Spider's Web). Please Do not delete my credit.
// This script was further modified by Eloise Pasteur to take out the need to reset, tidy up some messy code and offer an option to restrict clicking on the slide to just the owner.
_____________________