Jump to content
  • 0

how do you animate objects?


Eveeoni
 Share

You are about to reply to a thread that has been inactive for 4613 days.

Please take a moment to consider if this thread is worth bumping.

Question

2 answers to this question

Recommended Posts

  • 0

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.

  • Like 2
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4613 days.

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
 Share

×
×
  • Create New...