I'm currenty trying out AnimationPackage
and I ran into a problem concerning the Animation class. This might be a bug but I'm currently guessing that I did something wrong somewhere along the way...
So, I'm trying to set up a simple Animation instance where 3 movieclips (mc1, mc2 and mc3) are moved across the screen with different starting points. All of this works well, as long as I don't
change the TweenModes and DurationModes of the AnimationCore class.
Then only the first tween starts, the others just don't happen. Does anyone know what the deal is?
// These are the two lines of code that break the functionality!
AnimationCore.setTweenModes(AnimationCore.FRAMES);
AnimationCore.setDurationModes(AnimationCore.MS);
var a = new Animation();
a.addChild(new Move(mc1, 390, 93), 0, 1000);
a.addChild(new Move(mc2, 390, 215), 300, 1500);
a.addChild(new Move(mc3, 390, 347), 1000, 3000);
a.animationStyle(3000, Expo.easeOut);
a.animate(0, 100);
Thanks in advance!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi everyone!
I'm currenty trying out AnimationPackage
and I ran into a problem concerning the Animation class. This might be a bug but I'm currently guessing that I did something wrong somewhere along the way...
So, I'm trying to set up a simple Animation instance where 3 movieclips (mc1, mc2 and mc3) are moved across the screen with different starting points. All of this works well, as long as I don't
change the TweenModes and DurationModes of the AnimationCore class.
Then only the first tween starts, the others just don't happen. Does anyone know what the deal is?
Here's the code:
import de.alex_uhlmann.animationpackage.*;
import de.alex_uhlmann.animationpackage.animation.*;
import de.alex_uhlmann.animationpackage.drawing.*;
import de.alex_uhlmann.animationpackage.utility.*;
import com.robertpenner.easing.*;
APCore.initialize();
APCore.setFPS(31);
// These are the two lines of code that break the functionality!
AnimationCore.setTweenModes(AnimationCore.FRAMES);
AnimationCore.setDurationModes(AnimationCore.MS);
var a = new Animation();
a.addChild(new Move(mc1, 390, 93), 0, 1000);
a.addChild(new Move(mc2, 390, 215), 300, 1500);
a.addChild(new Move(mc3, 390, 347), 1000, 3000);
a.animationStyle(3000, Expo.easeOut);
a.animate(0, 100);
Thanks in advance!
Hi Jan,
Good news, it's fixed! I've just done an update on AP, this was one of the bugfixes.
Best,
Alex