I have a variable that updates more than once per second and I am multiplying it by a number to scale the width of an object when/while it changes. The problem is that it stays at whatever the initial value of the variable is and doesn’t update all the time while its changing. How can I get it so that the sizes constantly scales with the variable? [import]uid: 86518 topic_id: 31764 reply_id: 331764[/import]
Or instead is there a way to “interpolate” the size to zero over a period of time? [import]uid: 86518 topic_id: 31764 reply_id: 127306[/import]
I have made progress so far. I made a global variable which changes correctly over time to zero. The only thing is how can I get the objects width to always be equal to that variable. right now I tried object.width = the_variable and object.contentWidth = the_variable but neither have worked. [import]uid: 86518 topic_id: 31764 reply_id: 127310[/import]
Or instead is there a way to “interpolate” the size to zero over a period of time? [import]uid: 86518 topic_id: 31764 reply_id: 127306[/import]
I have made progress so far. I made a global variable which changes correctly over time to zero. The only thing is how can I get the objects width to always be equal to that variable. right now I tried object.width = the_variable and object.contentWidth = the_variable but neither have worked. [import]uid: 86518 topic_id: 31764 reply_id: 127310[/import]