Is there anyway to interrupt a flick() animation that is already in progress?
I tried overwriting it by doing another flick() using a blank icon file, but it didn't work.
ID:156391
![]() Oct 20 2010, 8:37 pm
|
|
![]() Oct 21 2010, 4:34 pm
|
|
flick() is just very brief, afaik, maybe instead, if it is possible, just change the state instead of flick, then if it needs to be interupted, just change it back or whatever.
|
The flick()'d animation will last however long the icon or icon_state's animation lasts. As far as interrupting the flick()'d animation, I have never done so before, nor had the need to.
|
You need to flick() an icon state that actually exists. Easiest solution: just flick(icon_state,src).
|
I.e.
flick("charging",src) This is just an example. The attack code does no damagr but it does change their icon. Btw im on my ipod so there might be some flaws. But atleast i tried :) |