After adding his line
gui.animate(circle, "scale", vmath.vector3(0,0,1), gui.EASING_INQUAD, 3, 0, fail())
to my code, I’m getting a weird error;
Is this a bug, and how do I fix it?
After adding his line
gui.animate(circle, "scale", vmath.vector3(0,0,1), gui.EASING_INQUAD, 3, 0, fail())
to my code, I’m getting a weird error;
Is this a bug, and how do I fix it?
First thing that pops out to me is that you are calling the function fail rather than referencing it. So, change fail() to fail.
gui.animate(circle, "scale", vmath.vector3(0,0,1), gui.EASING_INQUAD, 3, 0, fail)
Oh. that fixed it, thanks!
Still weird that the error message is “null” tho…
Yes, not very informative!