Guest User

Untitled

a guest
Dec 13th, 2013
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 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(attack==false){
  13. if(f<10){ SetGraphicRect(0,0,64,64); }
  14. if(f>=10 && f<20){ SetGraphicRect(64,0,128,64); }
  15. if(f>=20 && f<30){ SetGraphicRect(128,0,192,64); }
  16. if(f>=30 && f<40){ SetGraphicRect(192,0,256,64); }
  17. f2=0;
  18. }
  19. }
  20.  
  21.  
  22. if(GetSpeedX()>0){
  23. if(attack==false){
  24. if(f2<5){ SetGraphicRect(0,70,60,128); }
  25. if(f2>=5 && f2<10){ SetGraphicRect(60,70,120,128); }
  26. if(f2>=10 && f2<15){ SetGraphicRect(120,70,180,128); }
  27. if(f2>=15){ SetGraphicRect(180,70,240,128); }
  28. f2++;
  29. }
  30. }
  31.  
  32. if(GetSpeedX()<0){
  33. if(attack==false){
  34. SetGraphicAngle(180,0,0);
  35. if(f2<5){ SetGraphicRect(0,70,60,128); }
  36. if(f2>=5 && f2<10){ SetGraphicRect(60,70,120,128); }
  37. if(f2>=10 && f2<15){ SetGraphicRect(120,70,180,128); }
  38. if(f2>=15){ SetGraphicRect(180,70,240,128); }
  39. f2++;
  40. }
  41. }
  42.  
  43. if(attack==true){
  44. if(f2<10){ SetGraphicRect(stuff)}
  45. if(f2>=10 && f2<20){ SetGraphicRect(more stuff)}
  46. if(f2>=20 && f2<30){ SetGraphicRect(more more stuff)}
  47. f2++;
  48. }
  49.  
  50. DrawGraphic(GetX,GetY);
  51.  
  52. f++;
  53. if(f==40){f=0;}
  54.  
  55.  
  56. }
Advertisement
Add Comment
Please, Sign In to add comment