ScrollText
Revision as of 14:00, 14 December 2008 by Kalie Denimore (talk | contribs) (New page: ==llScrollText== <lsl> //LLScrollText - using llSetText to make a scroll effect.// //Writen by Bios Winter & Kalie Denimore.// llScrollText(string text,integer letters){integer length = l...)
llScrollText
<lsl>
//LLScrollText - using llSetText to make a scroll effect.// //Writen by Bios Winter & Kalie Denimore.// llScrollText(string text,integer letters){integer length = llStringLength(text);integer i ;string dtext;for(i = 0;i != length;i++){ if(llStringLength(dtext) < letters){dtext += llGetSubString(text,i,i); llSetText(dtext,<255,255,255>,1);llSleep(.2); } else{dtext = llDeleteSubString(dtext,0,0); dtext += llGetSubString(text,i,i);llSetText(dtext,<255,255,255>,1);llSleep(.2);} if(i+1 == length){llSetText("",<255,255,255>,1);}}}
default
{
state_entry() { llScrollText("Hello, Avatar!",10); }
}
</lsl>