I am working on animation, but facing some issue. I would like a image in and out with animation in 2 conditions (Transition.ToNewList & Transition.ToNewSelection)
When I startup AM, then trigger Transition.ToNewList. At this moment, press key to select new game. It will trigger second animation. Then it runs 2 times. How to modify the code to run one time only? Thanks.
::OBJECTS <- {
marquee = fe.add_artwork("marquee", flx*-0.2, fly*0.69, flw*0.18, flh*0.1 ),
}
local move_marquee1 = {
when = Transition.ToNewList ,property = "x", start = flx*-0.2, end = 0, time = 600
}
local move_marquee2 = {
when = Transition.ToNewSelection ,property = "x", start = flx*-0.2, end = 0, time = 600,
}
local move_marquee3 = {
when = Transition.ToNewList ,property = "x", start = 0, end = flx*-0.2, time = 1000, delay = 3000
}
local move_marquee4 = {
when = Transition.ToNewSelection ,property = "x", start = 0, end = flx*-0.2, time = 1000, delay = 3000
}
animation.add( PropertyAnimation( OBJECTS.marquee, move_marquee1 ) );
animation.add( PropertyAnimation( OBJECTS.marquee, move_marquee2 ) );
animation.add( PropertyAnimation( OBJECTS.marquee, move_marquee3 ) );
animation.add( PropertyAnimation( OBJECTS.marquee, move_marquee4 ) );