Jump to content

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


Lightrona
 Share

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

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

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);

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1590 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...