Jump to content

A Looping & Resetting Texture Expression


Lyonz

Recommended Posts

Hi all,

Im currently trying to write an expression that not only resets the texture sequence if the animation turns to 0 but also loops using a modular expression if the animation is stays constant 1.

The texture im using flashes every 4 frames (2blank) as a muzzle flash. And want this to repeat (Which works using modulus) but if the animation is 0 I want it to reset the modulus so that it will always flash when the animation is 1.

Sorry i am not able to provide the textures at this moment in time but really appreciate some advice even if its the name of the expression i need to use.

Also I have provided a very basic file of my setup showing what is connected to what.

Cheers

Lyonz

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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...