Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

slide show on one face of a prim

Malik Bode
Registered User
Join date: 27 Dec 2006
Posts: 23
06-09-2007 08:18
Hi

I would like to put a number of textures in a box and have one face rotate between them at a difinable interval.

I have no idea where to start.

Can anyone help please

Thanks in advance
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
06-09-2007 08:53
This is real common and simple to do. You'd counting up the textures with llGetInventoryNumber(INVENTORY_TEXTURE), start an llSetTimer() at your defined interval, and in the timer() event handler, llSetTexture(llGetInventoryName(INVENTORY_TEXTURE, textureIndex), yourDesiredSide), each time incrementing textureIndex, %= the texture count.

You can figure out which is yourDesiredSide from the prim editor, Select Texture radio button, select the face, and Control-Alt-Shift-T.

For extra points, you might very briefly flash the *next* texture to precache it on the client while the current texture is displaying, or push it on some other surface that has llSetAlpha(0).