i guess he needs the width of the current frame of the active animation
that's correct
well i can see that getAnimationSize(obj) needs an active anim as an argument, so i would go for ke4's solution also. but i tried both the above solutions with no success.
In the logs i noticed this also:
14:48:32.696:[string "(8,1154)"]:5: attempt to call global 'getAnimationSize' (a nil value)
14:48:32.696:stack traceback:
[C]: in function 'debugerror'
[string "function debugfunc(err) debugerror(err) end"]:1: in function 'getAnimationSize'
[string "(8,1154)"]:5: in main chunk
14:48:32.696:Failed to run string in Lua: