Mewkyuu

toprow

Aug 14th, 2011
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. let nimonodrawloopnextrect = 0; let nimonodrawlooprectsetnext = 0;
  2. let nimonodrawlooprectattackframe = 0;
  3. @DrawLoop {
  4. if(nimonodrawloopnextrect == 0){
  5. alternative(nimonorSGR)
  6. case(0, 2, 4, 6, 8) { SetGraphicRect(0, 0, 128, 128); }
  7. case(1, 5, 9) { SetGraphicRect(129, 0, 256, 128); }
  8. case(3, 7, 11) { SetGraphicRect(257, 0, 384, 128); }
  9. case(10) { SetGraphicRect(385, 0, 512, 128); }
  10. nimonoSGR++; nimonoSGR%=12;
  11. }
  12. nimonodrawloopnextrect++; nimonodrawloopnextrect%=nimonodrawlooprectsetnext;
  13. if(nimonodrawlooprectattackframe > 0) { nimonodrawlooprectattackframe--; }
  14. if(nimonodrawlooprectattackframe < 0) { nimonodrawlooprectattackframe = 0; }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment