void SetupScroller() { FRepeatSprite rs = new FRepeatSprite("drumstick2", Futile.screen.width*2, Futile.screen.height*2); FContainer scrollContainer = new FContainer(); scrollContainer.AddChild(rs); this.AddChild(scrollContainer); Go.to( scrollContainer, 10f, new TweenConfig() .floatProp("rotation", 360) .setIterations( -1, LoopType.RestartFromBeginning )); }
public SpaceBackground() { background100 = new FRepeatSprite("Parallax100", Futile.screen.width, Futile.screen.height); background80 = new FRepeatSprite("Parallax100", Futile.screen.width, Futile.screen.height, 0, 80); background60 = new FRepeatSprite("Parallax100", Futile.screen.width, Futile.screen.height, 0, 60); background80.alpha = 0.8f; background60.alpha = 0.6f; this.AddChild(background100); this.AddChild(background80); this.AddChild(background60); }