|
I'm trying to make 4 HP bar to drop down smoothly using iTween The HP bar is a 64-pixel-wide GUITexture My question is, how can I cut down the number of onUpdate functions by providing the 2nd parameter to onUpdateParams function? I've tried to supply Hashtable as argument for onUpdateFunction and iTween doesn't accept it. I've already tried to supply JavaScript Object as the argument and iTween treat them as int What would be my other options rather than this long,messy, unelegant way of handling it? I appreciate any feedback
(comments are locked)
|
|
With the solution prevented by karsten here, you only need to change 3 lines of code in iTween, and can then use an inline delegate for "onupdate"/"oncomplete"/"onstart" (instead of an explicit function) to execute arbitrary code with any parameters you like. So for example you could then do something like: NOTE: I don't know whether this works in US/JS, too, or whether the syntax would change.
(comments are locked)
|

I have the same question