Adding randomness

More
7 years 5 months ago #1883 by WillyWonka
Adding randomness was created by WillyWonka
I've been able to setup an animation so that letters animate into position sequentially with a delay, but is it possible to randomly select which letters animate so that it's out of order?

Is it possible to adjust animations on the fly via code?

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago - 7 years 5 months ago #1885 by Frank
Replied by Frank on topic Adding randomness
Hi

I've been able to setup an animation so that letters animate into position sequentially with a delay, but is it possible to randomly select which letters animate so that it's out of order?


Each sequence can have random values (position, scale, etc), but there is no setting for random starting, just sequential with customizable ease curve.
With the feedbacks I have gathered about the Animation system, I'm about to tweak it to make it easier to work with, so while I do that I will make sure to add a Random setting for the ease curve as well.

Don't hesitate in letting me know If you find anything else missing or have a suggestion on how to make it easier for you!

Is it possible to adjust animations on the fly via code?


yes, you have full access to every parameter.

Basically, you can do play and modify values this way:
            var se = GetComponent<SmartEdge>();

            se.StopAllAnimations();
            var anim = se.PlayAnim("Pulse");

            var sequence = anim._Sequences[0] as SE_AnimSequenceType_Position;
            sequence._To = new Vector3(10,0,0);

Hope that helps
Frank

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
Last edit: 7 years 5 months ago by Frank.

Please Log in or Create an account to join the conversation.

Time to create page: 0.335 seconds
Template by JoomlaShine