|
Taylor Bracken
Registered User
Join date: 26 Apr 2007
Posts: 42
|
05-10-2007 07:47
Hi there - I would like to have an object that rotates between two pictures ( a mini slide show ), do you know where a sample script is that would change the texture.
Essentially it's to change the front sign on a store, to rotate between the two textures.
thanks, TB
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
05-10-2007 08:02
From: Taylor Bracken Hi there - I would like to have an object that rotates between two pictures ( a mini slide show ), do you know where a sample script is that would change the texture.
Essentially it's to change the front sign on a store, to rotate between the two textures.
thanks, TB Do you mean just toggle between the or slide from one to the other? Theres a difference. To toggle just use llSetTexture() with some form of delay i.e. integer TextureNumber = FALSE;
SetTexture() { if(TextureNumber) llSetTexture("texture 1",ALL_SIDES); else llSetTexture("texture 0",ALL_SIDES); }
default { state_entry() { TextureNumber = FALSE; SetTexture(); llSetTimerEvent(10.); }
timer() { TextureNumber = ! TextureNumber ; SetTexture(); } }
To 'slide' I'd suggest uploading a single texture with both images on it and use the tetxure animation functions to give the effect you require.
_____________________
I'm back......
|
|
Taylor Bracken
Registered User
Join date: 26 Apr 2007
Posts: 42
|
05-10-2007 08:03
Thanks for the reply back - I don't want to toggle between textures but between two JPGS that I would have in inventory ( like two pictures )
thanks again - TB
|
|
Taylor Bracken
Registered User
Join date: 26 Apr 2007
Posts: 42
|
05-10-2007 08:07
Hi Newgate - just tired that script and it works greate for what I need - thanks again TB
|
|
Milambus Oh
Registered User
Join date: 6 Apr 2007
Posts: 224
|
05-10-2007 08:43
Just an FYI a texture is just a special type of picture. The game doesn't really care what the image is that you put on an object.
|