public override void OnEnter() { base.OnEnter(); var waves = new CCWaves(5, new CCGridSize(15, 10), 5, 20, true, false); var shaky = new CCShaky3D(5, new CCGridSize(15, 10), 4, false); Target1.RepeatForever(waves); Target2.RepeatForever(shaky); // moving background. Testing issue #244 var move = new CCMoveBy(3, new CCPoint(200, 0)); bgNode.RepeatForever(move, move.Reverse()); }
public override void onEnter() { base.onEnter(); CCNode bg = getChildByTag(EffectAdvanceScene.kTagBackground); CCNode target1 = bg.getChildByTag(EffectAdvanceScene.kTagSprite1); CCNode target2 = bg.getChildByTag(EffectAdvanceScene.kTagSprite2); CCActionInterval waves = CCWaves.actionWithWaves(5, 20, true, false, new ccGridSize(15, 10), 5); CCActionInterval shaky = CCShaky3D.actionWithRange(4, false, new ccGridSize(15, 10), 5); target1.runAction(CCRepeatForever.actionWithAction(waves)); target2.runAction(CCRepeatForever.actionWithAction(shaky)); //// moving background. Testing issue #244 //CCActionInterval move = CCMoveBy.actionWithDuration(3, new CCPoint(200, 0)); //bg.runAction(CCRepeatForever.actionWithAction((CCActionInterval)(CCSequence.actions(move)))); }
public override void OnEnter() { base.OnEnter(); CCNode bg = GetChildByTag(EffectAdvanceScene.kTagBackground); CCNode target1 = bg.GetChildByTag(EffectAdvanceScene.kTagSprite1); CCNode target2 = bg.GetChildByTag(EffectAdvanceScene.kTagSprite2); CCActionInterval waves = new CCWaves(5, new CCGridSize(15, 10), 5, 20, true, false); CCActionInterval shaky = new CCShaky3D(5, new CCGridSize(15, 10), 4, false); target1.RunAction(new CCRepeatForever(waves)); target2.RunAction(new CCRepeatForever(shaky)); // moving background. Testing issue #244 CCActionInterval move = new CCMoveBy(3, new CCPoint(200, 0)); bg.RunAction(new CCRepeatForever(new CCSequence(move, move.Reverse()))); }
public override void OnEnter() { base.OnEnter(); //var bg = this[EffectAdvanceScene.kTagBackground]; //var target1 = bg[EffectAdvanceScene.kTagSprite1]; //var target2 = bg[EffectAdvanceScene.kTagSprite2]; var waves = new CCWaves(5, new CCGridSize(15, 10), 5, 20, true, false); var shaky = new CCShaky3D(5, new CCGridSize(15, 10), 4, false); grossini.RepeatForever(waves); tamara.RepeatForever(shaky); // moving background. Testing issue #244 var move = new CCMoveBy(3, new CCPoint(200, 0)); bgNode.RepeatForever(move, move.Reverse()); }
public static CCActionInterval actionWithDuration(float t) { return(CCWaves.actionWithWaves(4, 20, true, true, new ccGridSize(16, 12), t)); }