|
Taylor Bracken
Registered User
Join date: 26 Apr 2007
Posts: 42
|
05-10-2007 08:10
Hi all - one question and thanks again for the slideshow scrpt. Can I use an Animated GIF inside of the object ( i.e. instead of the uploaded JPEG? )
tks, TB
|
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
05-10-2007 08:39
you need to lay out each frame of the animated gif...so like lt's say it was 25 frames... make it 500% wide and 500% long. then paste frame 1 into the top left corner, frame 2 next to it, and so on, frame 6 in row 2... 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Take that texture, and upload it. then apply it to the prim. Then use the following script in the prim default { state_entry() {
llSetTextureAnim( ANIM_ON | LOOP , ALL_SIDES, 5, 5, 0, 25, 15); // ANIM_ON - animation mode (ANIM_OFF stops texture movement) // LOOP - starts over when it reaches the end // ALL_SIDES - this will animate all sides of the prim // 5 - number of frames across // 5 - number of frames tall // 0 - start frame (top left) // 25 - length (number of total frames) // 15 - number of frames per second }
}
_____________________
 ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura
|
|
Taylor Bracken
Registered User
Join date: 26 Apr 2007
Posts: 42
|
05-10-2007 08:44
Thanks Winter !
TB
|