amitsarangi / mt4j

Automatically exported from code.google.com/p/mt4j
GNU General Public License v2.0
0 stars 0 forks source link

Problem with aniAnimation #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an AniAnimation with a delay in it
2. Run the animation, then you can see how the animationStart event is called 
immediately, instead of wait the animation delay

What is the expected output? What do you see instead?
The listener is fired with an animationStart event right after the animation 
start, then wait the delay and then continue with the animation

What version of the product are you using? On what operating system?
0.98 on windows 7 64b with a 32 JVM, compiling with JDK 7

Please provide any additional information below.
With the old animation object everything works as expected, but i really wanted 
the tools that Ani can give you like the easing and stuff, i don't know if 
there is a way to do so in a elegant way (I need to put a flag in the 
animationUpdated, which i don't think will be the best solution, any help or 
guide will be appreciated!
I already read the Ani documentation, but isn't very clear, almost in-existent

Original issue reported on code.google.com by rekie...@gmail.com on 27 Apr 2012 at 12:40

GoogleCodeExporter commented 9 years ago
Well, after try with the callback of ani and get the same results, i used the 
same technique of Animation, something like change the methods in AniAdapter, 
note that i throw a eventStart, eventUpdate and eventEnd instead of just event 
update, i do this for a personal choice, i prefer three different methods and 
make an adapter if i just need one or two, than the need of a switch almost 
always in the method, i think is a unnecessary condition that have to be made 
one time per frame, i have much experience in java, but none in graphics, so 
it's just my humble opinion, i'll attach the classes, have very little changes 
and i tried to documented all well

Original comment by rekie...@gmail.com on 28 Apr 2012 at 8:34

Attachments: