Ejemplo n.º 1
0
        public override void onEnter()
        {
            base.onEnter();
            CCActionInterval move      = CCMoveBy.actionWithDuration(3, new CCPoint(350, 0));
            CCActionInterval move_back = move.reverse() as CCActionInterval;

            CCActionInterval move_ease_in      = CCEaseBackIn.actionWithAction((CCActionInterval)(move.copy()));
            CCActionInterval move_ease_in_back = move_ease_in.reverse() as CCActionInterval;

            CCActionInterval move_ease_out      = CCEaseBackOut.actionWithAction((CCActionInterval)(move.copy()));
            CCActionInterval move_ease_out_back = move_ease_out.reverse() as CCActionInterval;

            CCFiniteTimeAction seq1 = CCSequence.actions(move, move_back);
            CCFiniteTimeAction seq2 = CCSequence.actions(move_ease_in, move_ease_in_back);
            CCFiniteTimeAction seq3 = CCSequence.actions(move_ease_out, move_ease_out_back);

            m_grossini.runAction(CCRepeatForever.actionWithAction((CCActionInterval)seq1));
            m_tamara.runAction(CCRepeatForever.actionWithAction((CCActionInterval)seq2));
            m_kathia.runAction(CCRepeatForever.actionWithAction((CCActionInterval)seq3));
        }
Ejemplo n.º 2
0
 public override CCFiniteTimeAction Reverse()
 {
     return(CCEaseBackOut.actionWithAction((CCActionInterval)m_pOther.Reverse()));
 }