CODE
default
{
state_entry()
{
llSetTextureAnim(ANIM_ON|LOOP,ALL_SIDES, 2, 2, 0, 4, 2 );
}
}
If I took out "ALL_SIDES" what do I replace with it to specify what face to animate?
thanks!
These forums are CLOSED. Please visit the new forums HERE
Specifying just One Face? |
|
duLuna Bosatsu
OMnomnom nom.
Join date: 4 Nov 2007
Posts: 102
|
12-10-2009 16:21
So I'm using the animation script:
CODE
If I took out "ALL_SIDES" what do I replace with it to specify what face to animate? thanks! |
Kayaker Magic
low carbonated footprint
Join date: 11 Sep 2008
Posts: 109
|
12-10-2009 16:52
There are tables in the online documentation telling you which face is which.
Or you could try random numbers until the one you want animates. Or you can select the face you want in the build dialog and type CTRL-ALT-SHIFT-T and it will chat you which face(s) you have selected. (Hold the CtrL, Alt, Shift keys down, then press T) |
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
12-10-2009 17:00
Faces are numbered, starting with zero at the top of a prim. On a cube, face #1 is the -Y (south-facing) face, #2 is +X (east-facing), #3 is +Y, #4 is -X, and #5 is the bottom. See http://wiki.secondlife.com/wiki/Category:LSL_Face. You might also try dropping this script into a few prims and touching faces to see which ones are which....
CODE
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....
![]() Look for my work in XStreetSL at |
Indeterminate Schism
Registered User
Join date: 24 May 2008
Posts: 236
|
12-11-2009 04:14
Just a further note that you can animate the texture on one face or all faces but not on just 2 or 3, or have different animations on different faces.
@ Kayaker. Thanks for that, always something new to learn in SL! |