|
Post by runes on Aug 29, 2013 10:52:40 GMT
It appears to me that exports don't work if you use functions in your javascript. Can this really be true??? simple example here bubbles.haniThis project just exports a blank page. It works fine in preview.
|
|
|
Post by Hippani on Aug 29, 2013 12:24:40 GMT
|
|
|
Post by runes on Aug 29, 2013 13:35:17 GMT
Thanks for the quick reply. Stupid copy paste error I assumed that it was due to the use of functions because I made another animation that also did not export correctly: starfield.haniCan you tell me what's wrong with that one? Because Hippo Animator can't Thanks for the advice. Yes I should probably consider that. And also use an array for this kind of thing. But I'm new to programming and just wrapping my head around using functions, so one thing at a time
|
|
|
Post by Hippani on Aug 29, 2013 14:20:34 GMT
Yes star.speedx=(Math.random()-0.5;
should be:
star.speedx=(Math.random()-0.5);
you need to close the bracket.
We use Chrome and Ctrl+Shift+j to view javascript errors.
We'll see if we can add an error for this one too. Keep them coming. Hippo is too forgiving of coding errors.
|
|
|
Post by Hippani on Aug 29, 2013 14:57:48 GMT
OK both those fixes are now in Animator 3 if you want to try it.
Bascially an error says "Unexpected ; in bracket."
|
|
|
Post by goldyyy on May 22, 2021 20:52:01 GMT
|
|