Jump to content
Lightrona

Anyone knows how to make a script to animate texture in one face?

Recommended Posts

On 12/4/2019 at 11:37 AM, Lightrona said:

I want to make a script with Animating texture (rotates the texture in one face) which is glowing/scaled

I think we should add a few details not covered by the wiki.

It's not exactly clear from the Gyazo picture but if you want a rotating animation, you need to add the ROTATE flag and also set the start and length floats to 0.0 and PI*2 respectively. Something like this:

llSetTextureAnim(ANIM_ON | SMOOTH | LOOP | ROTATE, [FACE NUMBER], 1, 1, 0.0, PI*2, 1.0);

The wiki also seems to imply that you don't need to include the SMOOTH flag for rotating aniamtion but that's not true.

If by scale you mean the texture is set with repeats different from 1.0, and you want linear, not rotating animation, you need to set the sizex and sizey integers to 0:

llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, [FACE NUMBER], 0, 0, 0.0, 1.0, 1.0);

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...