I'm trying to make 4 HP bar to drop down smoothly using iTween The HP bar is a 64-pixel-wide GUITexture
What would be my other options rather than this long,messy, unelegant way of handling it?
I appreciate any feedback
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.
answered Jul 05 '12 at 01:06 PM