Eveeoni Posted August 12, 2011 Share Posted August 12, 2011 So I was wondering how you animate objects. Like beds that let you lay down or when you click the covers they fold back. Or does anyone at least know of a guide? And for godsakes, do not say classes. Link to comment Share on other sites More sharing options...
0 Ry0ta Exonar Posted August 12, 2011 Share Posted August 12, 2011 Using scripts. http://wiki.secondlife.com/wiki/LSL_Portal 2 Link to comment Share on other sites More sharing options...
0 Lindal Kidd Posted August 12, 2011 Share Posted August 12, 2011 The examples you give are two quite different things. To animate your avatar, an object must have at least two things in it -- the animation, and a script that plays the animation when the object is sat on. The script may be considerably more complex...for example, it might change to a differen animation when the object is left-clicked, or it might present the user with a menu from which they can choose animations. To make it easy to adjust the position of the avatar, a lot of furniture will rez a poseball when touched, rather than use an internal sit target. There's a free bed engine out there called MLP...just add your own animations. Animating the object itself generally takes one of three approaches. All of them involve a script that is activated on touch, or by menu. One way is to animate the texture...for example, have a texture that is half transparent, and half quilt texture. When touched, the texture moves on the prim to make it appear that the quilt is being "turned down". A second way is to animate the actual size of the prim, from a long quilt covering the bed to a short one at the foot. The third way is to have two quits...one spread out, and the other wadded up at the bed's foot. Then a script turns one of them transparent and the other one visible. Weapons, where you have a version of a sword in its sheath and another in your hand, work the same way. For more clues, see the script library on this website, or do a general web search for LSL Script Library. You'll find lots of pre-made scripts. With luck one or more will do what you want, or can be modified to do what you want. 2 Link to comment Share on other sites More sharing options...
Question
Eveeoni
So I was wondering how you animate objects. Like beds that let you lay down or when you click the covers they fold back. Or does anyone at least know of a guide? And for godsakes, do not say classes.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now