Guest User

Untitled

a guest
Dec 13th, 2013
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. let atk = false;
  2.  
  3. @DrawLoop {
  4.  
  5. SetTexture(boss);
  6. SetRenderState(ALPHA);
  7. SetAlpha(255);
  8. SetGraphicScale(1,1);
  9. SetGraphicAngle(0,0,0);
  10.  
  11. if(int(GetSpeedX())==0){
  12. if(f<10){ SetGraphicRect(0,0,64,64); }
  13. if(f>=10 && f<20){ SetGraphicRect(64,0,128,64); }
  14. if(f>=20 && f<30){ SetGraphicRect(128,0,192,64); }
  15. if(f>=30 && f<40){ SetGraphicRect(192,0,256,64); }
  16. f2=0;
  17. }
  18.  
  19.  
  20. if(GetSpeedX()>0){
  21. if(f2<5){ SetGraphicRect(0,70,60,128); }
  22. if(f2>=5 && f2<10){ SetGraphicRect(60,70,120,128); }
  23. if(f2>=10 && f2<15){ SetGraphicRect(120,70,180,128); }
  24. if(f2>=15){ SetGraphicRect(180,70,240,128); }
  25. f2++;
  26. }
  27.  
  28.  
  29. if(GetSpeedX()<0){
  30. SetGraphicAngle(180,0,0);
  31. if(f2<5){ SetGraphicRect(0,70,60,128); }
  32. if(f2>=5 && f2<10){ SetGraphicRect(60,70,120,128); }
  33. if(f2>=10 && f2<15){ SetGraphicRect(120,70,180,128); }
  34. if(f2>=15){ SetGraphicRect(180,70,240,128); }
  35. f2++;
  36. }
  37.  
  38. if(attack==true){
  39. if(f2<10){ SetGraphicRect(stuff)}
  40. if(f2>=10 && f2<20){ SetGraphicRect(more stuff)}
  41. if(f2>=20 && f2<30){ SetGraphicRect(more more stuff)}
  42. f2++;
  43. }
  44.  
  45. DrawGraphic(GetX,GetY);
  46.  
  47. f++;
  48. if(f==40){f=0;}
  49.  
  50.  
  51. }
Advertisement
Add Comment
Please, Sign In to add comment