Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let nimonoSGR = 0;
- let nimonodrawloopnextrect = 0; let nimonodrawlooprectsetnext = 5;
- let nimonodrawlooprectteleportframe = 0;
- let nimonodrawlooprectregmoveframe = 0;
- let nimonodrawlooprectattackframe = 0;
- let nimonodrawlooprectmode = 0;
- @DrawLoop {
- if(nimonodrawlooprectmode != [[[0,1][nimonodrawlooprectattackframe>0],2][nimonodrawlooprectregmoveframe>0],3][nimonodrawlooprectteleportframe>0]) { nimonoSGR=0; }
- SetTexture(nimonobosstexture);
- if(nimonodrawlooprectmode != 2) { SetGraphicScale(1, 1); }
- if(nimonodrawloopnextrect == 0){
- alternative(nimonodrawlooprectmode)
- case(1) { alternative(nimonoSGR)
- case(0) { SetGraphicRect(0, 128, 128, 256); }
- case(1) { SetGraphicRect(128, 128, 256, 256); }
- case(2) { SetGraphicRect(256, 128, 384, 256); }
- case(3) { SetGraphicRect(384, 128, 512, 256); nimonoSGR-=2;}
- if(nimonodrawlooprectattackframe==1) { SetGraphicRect(128, 128, 256, 256); }
- nimonoSGR++;
- }
- case(2) { alternative(nimonoSGR)
- case(0) { SetGraphicRect(0, 384, 128, 512); }
- case(1) { SetGraphicRect(128, 384, 256, 512); }
- case(2) { SetGraphicRect(256, 384, 384, 512); nimonoSGR-=2; }
- if(nimonodrawlooprectattackframe==1) { SetGraphicRect(0, 384, 128, 512); }
- if(GetSpeedX<0) { SetGraphicScale(1, 1); }
- else { SetGraphicScale(-1, 1); }
- nimonoSGR++;
- }
- case(3) { alternative(nimonoSGR)
- case(0,14) { SetGraphicRect(0, 128, 128, 256); }
- case(1,13) { SetGraphicRect(128, 128, 256, 256); }
- case(2,12) { SetGraphicRect(256, 128, 384, 256); }
- case(3,11) { SetGraphicRect(0, 256, 128, 384); }
- case(4,10) { SetGraphicRect(128, 256, 256, 384); }
- case(5,9) { SetGraphicRect(256, 256, 384, 384); }
- case(6,8) { SetGraphicRect(384, 256, 512, 384); }
- case(7) { SetGraphicRect(384, 384, 512, 512); }
- nimonoSGR++;
- }
- others { alternative(nimonoSGR)
- case(0, 2, 4, 6, 8) { SetGraphicRect(0, 0, 128, 128); }
- case(1, 5, 9) { SetGraphicRect(128, 0, 256, 128); }
- case(3, 7, 11) { SetGraphicRect(256, 0, 384, 128); }
- case(10) { SetGraphicRect(384, 0, 512, 128); }
- nimonoSGR++; nimonoSGR%=12;
- }
- }
- DrawGraphic(GetX, GetY);
- nimonodrawlooprectmode = [[[0,1][nimonodrawlooprectattackframe>0],2][nimonodrawlooprectregmoveframe>0],3][nimonodrawlooprectteleportframe>0];
- nimonodrawloopnextrect++; nimonodrawloopnextrect%=nimonodrawlooprectsetnext;
- if(nimonodrawlooprectattackframe > 0) { nimonodrawlooprectattackframe--; }
- if(nimonodrawlooprectregmoveframe > 0) { nimonodrawlooprectregmoveframe--; }
- if(nimonodrawlooprectteleportframe > 0) { if(nimonoSGR>=15) { nimonodrawlooprectteleportframe*=0; } }
- if(nimonodrawlooprectattackframe < 0) { nimonodrawlooprectattackframe = 0; }
- if(nimonodrawlooprectteleportframe < 0) { nimonodrawlooprectteleportframe = 0; }
- if(nimonodrawlooprectregmoveframe < 0) { nimonodrawlooprectregmoveframe = 0; }
- }
Advertisement
Add Comment
Please, Sign In to add comment