I am almost ready to dive into "webstorage" which intimidates me a bit. Before I do I want to ask about creating a state of decay for my Tree which has 5 instance variables with different values.
My tree has 3 animation states and over a browser session (lets say 10 minutes) I want my tree to decay instance variables at random in increments (some -3 some -1)
My tree is set to 55 total instance variables when it falls below 34 it takes its second animation.
How would I go about setting up this sequence of events?
Obviously in the future I want to make my decay state longer and associated with the Player and webstorage so when Player returns to a session the tree is in its previous state.
Thanks in advance.
One footnote I have to say this is the most badass peice of software and community that I have ever seen. I am extremely impressed!