Jump to content

AnimState functions: GetSymbolVariance, GetPercent and GetScale


Recommended Posts

AnimState:GetSymbolVariance(symbol_name) - valid only for the caller sim

This function could return the variance of the symbol as a number. For example, each of these textures is a "variance":

image.png.29ae6a6f50e7397889c72e51c4db91a0.png

 

 

 

 

AnimState:GetPercent()

It's already possible to get the percent of the current animation by calling this:

percent = AnimState:GetCurrentAnimationTime() / AnimState:GetCurrentAnimationLength()

but it's resulting in a bit.. inaccurate values, so it would be nice to be able to directly ask for the value.

 

AnimState:GetScale()

Currently it's impossible to inquire the scale from AnimState (Transform and AnimState scales are different things). Also, for some reason, AnimState scale doesn't affect the mouse detection hitbox.

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...