E
eeyimaya
Hello,
I am working on a program that includes a lot of animations.
Most of the animations occurs at the same time. For example
one of the scenarios is this:
first, one man comes from left and asks a question to the 3 creatures
Then 3 creatures answers sequentialy. And then start the changing
their faces
(all of the 3 creatures at the same time. i.e. 3 different
animations).
After 3 creatures stop the changing their faces; scenario ends. man
goes to the right by talking himself.
All of these animations occurs at a different fps
NOW, QUESTIONS:
Do I need one thread for each animations.ie, for man walking, first
creature talk,
second creature talk, third creature talk, first creature change face,
second creature change face,
third creature change face, man walks to the right, man talks
himself....
How do I achieve that when one thread (for example first creature
talk) ends,
the second starts(for example second creature talk.) I used one
thread for each animations and
when one starts others wait. I used "BUSY WAIT" but it performed very
badly. Tried to use
"wait- notify()" but could not achieve. DO YOU KNOW ANY LINK ABOUT
ANIMATIONS THAT USE wait-notify ?
I searched but every example just animating a single images!!!
Any help will be very appreciated...
I am working on a program that includes a lot of animations.
Most of the animations occurs at the same time. For example
one of the scenarios is this:
first, one man comes from left and asks a question to the 3 creatures
Then 3 creatures answers sequentialy. And then start the changing
their faces
(all of the 3 creatures at the same time. i.e. 3 different
animations).
After 3 creatures stop the changing their faces; scenario ends. man
goes to the right by talking himself.
All of these animations occurs at a different fps
NOW, QUESTIONS:
Do I need one thread for each animations.ie, for man walking, first
creature talk,
second creature talk, third creature talk, first creature change face,
second creature change face,
third creature change face, man walks to the right, man talks
himself....
How do I achieve that when one thread (for example first creature
talk) ends,
the second starts(for example second creature talk.) I used one
thread for each animations and
when one starts others wait. I used "BUSY WAIT" but it performed very
badly. Tried to use
"wait- notify()" but could not achieve. DO YOU KNOW ANY LINK ABOUT
ANIMATIONS THAT USE wait-notify ?
I searched but every example just animating a single images!!!
Any help will be very appreciated...