|
raven Blair
Registered User
Join date: 2 Feb 2004
Posts: 39
|
01-17-2009 00:15
I am trying to make a Digital Picture frame for a friend and I am haven some problems. I got it working kinda how I want it to work, If you have ever seen a Digital Picture frame in RL where you load in a number of photos and it will change from one to the other but some of them have the option to animate each texture like one will slightly move to the left, or slowly scale out or in on the texture like its getting farther away or closer or slide in from top left to bottom right ext.... right now I am using two scripts and its not perfect some of the textures start out either tiled and so on, I will list the scripts. Texture changer. integer number; integer count; default { state_entry() { number = llGetInventoryNumber(INVENTORY_TEXTURE); count = 0; llSetTimerEvent(10.0); } timer() { count++; string name = llGetInventoryName(INVENTORY_TEXTURE, count); if (name != "") llSetTexture(name, ALL_SIDES); if (count >= number) count = 0; } }
and the one that animates it. integer count; integer rocking = FALSE; default { state_entry() { count = 0; llSetTimerEvent(10); }
timer() { if(count == 0) { ++count; llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES, 1, 1, 1, 3, 0.01); } else if(count == 1) { ++count; llSetTextureAnim(ANIM_ON | REVERSE | SMOOTH | LOOP, ALL_SIDES, 1, 1, 1, 3, 0.01); } else if(count == 2) { ++count; llSetTextureAnim(ANIM_ON | ROTATE | SMOOTH | LOOP, ALL_SIDES, 1, 1, 1, 3, 0.01); } else if(count == 3) { count = 0; llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES, 1, 1, 1, 3, 0.01);
} } }
any help on this would be great 
|
|
raven Blair
Registered User
Join date: 2 Feb 2004
Posts: 39
|
01-17-2009 00:26
Ok what did I do wrong......... or do I need a addon to firefox............... But I dont see the code in PHP format. oh do I need to put it in caps?
|
|
Winter Seale
Registered User
Join date: 27 Dec 2006
Posts: 30
|
01-18-2009 01:49
From: raven Blair Ok what did I do wrong......... or do I need a addon to firefox............... But I dont see the code in PHP format. oh do I need to put it in caps? Your tags are fine, you just need the Firefox addon. Full directions on what you need to do are here: /15/d0/222988/1.html
_____________________
~~ Winter Seale ~~ http://winterseale.com/ ~~
|
|
raven Blair
Registered User
Join date: 2 Feb 2004
Posts: 39
|
01-18-2009 02:25
thank you so much winter
|