public override void OnEnter() { base.OnEnter(); CenterSprites(); RotateTo actionTo = new RotateTo(2, 45); RotateTo actionTo2 = new RotateTo(2, -45); RotateTo actionTo0 = new RotateTo(2, 0); _tamara.RunAction(new Sequence(actionTo, actionTo0)); RotateBy actionBy = new RotateBy(2, 360); RotateBy actionByBack = actionBy.Reverse() as RotateBy; _grossini.RunAction(new Sequence(actionBy, actionByBack)); Sprite kathia = new Sprite("grossinis_sister2.png"); AddChild(kathia); kathia.SetPosition(240, 160); kathia.RunAction(new Sequence(actionTo2, actionTo0.Clone() as RotateTo)); }
public override void OnEnter() { base.OnEnter(); SizeF s = Director.Instance.WinSize; Sprite sprite = new Sprite("grossinis_sister2.png"); AddChild(sprite); sprite.SetPosition(s.Width - 100, s.Height / 2); Sequence action = Sequence.Construct(new MoveBy(2, new PointF(200, 0)), new CallFunc(Callback1)); Sequence action2 = Sequence.Construct(new ScaleBy(2, 2), new FadeOut(2), new CallFuncN(Callback2)); Sequence action3 = Sequence.Construct(new RotateBy(3, 360), new FadeOut(2), new CallFuncND(Callback3, 0xbebabebau)); _grossini.RunAction(action); _tamara.RunAction(action2); sprite.RunAction(action3); }