Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ffc script TrippyBG{
- void DrawBackground(int Layer, int Tile, int CSet, int XS, int YS, int Rot, int Opacity){
- Screen->DrawTile(Layer, 128-(256*XS)/2, 88-(176*YS)/2, Tile, 16, 11, CSet, 256*XS, 176*YS, 128-(256*XS)/2, 88-(176*YS)/2, Rot, 0, true, Opacity);
- }
- void run(int Layer, int CSet, int Cycle, int Rate){
- int Counter = 0;
- int ColorSet[2] = {CSet, 10};
- int Color = CSet;
- while(true){
- Counter+=Screen->D[2]+Rate;
- if(Counter>=360){
- Counter-=360;
- }
- if(Screen->D[4]>0)Color=10;
- else Color = CSet;
- DrawBackground(Layer, 29120, Color, 2, 2, Counter, 128);
- DrawBackground(Layer, 29120, Color, 2.1+Abs(Sin(Counter)), 2, Counter, 64);
- DrawBackground(Layer, 29120, Color, 2, 2.1+Abs(Sin(Counter)), Counter, 64);
- Waitframe();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement