Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Linking Cycled Images--Please Help

DrFran Babcock
Registered User
Join date: 30 Apr 2006
Posts: 69
02-13-2007 09:04
OK, I am new to this, and this first question is really to ask if what I envision is possible. It is quite long winded, sorry:

I have made a lovely shoulder buddy or a bird that is quite animated, thanks to a script written by a friend, but I would like its eyes to blink. My thinking went like this: create a flattened cylinder, put in a texture of an open eye-with pupil, and a closed eye/blink-just a white texture. Along with this, I threw in an image cycler to switch between the two textures. Then, I made a copy of this, but as you probably have figured, the two "eyes" blink on and off randomly, giving my shoulder buddy bird a somewhat crazed look.

Is there a way to get the cycling of the images to link up? I tried working with a link and timer script, created for me, but they didn't quite do the trick.

Any suggestions? I have pasted the link and timer script here, but don't know if that's of any help.

I would appreciate any comments. Even references to where to go for the info would be appreciated. Thanks. Scripts:

TIMER SCRIPT:

Default
{
state entry()
{
llSetTimerEvent(30);
}

timer()
{
11MessageLinked(LINK_SET, 0, ‘blink”, NULL KEY);
}
}



LINK SCRIPT:

Default
{
link_message(integer sender, interger num, string message, key id)
{
if (message ==”blink”)
{
llSetTexture(“White eye”), 2);
llSleep (1.0);
llSetTexture(“Bird Eye”, 2);
}
}
}
DrFran Babcock
Registered User
Join date: 30 Apr 2006
Posts: 69
Hmmmm
02-13-2007 09:45
Sorry group. I should have done a more thorough search. I have found enough info here to keep me busy when I get back in-world. Thanks for reading. I hope I can learn enough to be of help one day.
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
02-14-2007 00:50
From: DrFran Babcock
Sorry group. I should have done a more thorough search. I have found enough info here to keep me busy when I get back in-world. Thanks for reading. I hope I can learn enough to be of help one day.


If you found an answer, doesnt mattter how obvious or trivial it was, then post it here, it may help someone else in the future who runs into the same problem.