Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let atk = false;
- @DrawLoop {
- SetTexture(boss);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetGraphicScale(1,1);
- SetGraphicAngle(0,0,0);
- if(int(GetSpeedX())==0){
- if(f<10){ SetGraphicRect(0,0,64,64); }
- if(f>=10 && f<20){ SetGraphicRect(64,0,128,64); }
- if(f>=20 && f<30){ SetGraphicRect(128,0,192,64); }
- if(f>=30 && f<40){ SetGraphicRect(192,0,256,64); }
- f2=0;
- }
- if(GetSpeedX()>0){
- if(f2<5){ SetGraphicRect(0,70,60,128); }
- if(f2>=5 && f2<10){ SetGraphicRect(60,70,120,128); }
- if(f2>=10 && f2<15){ SetGraphicRect(120,70,180,128); }
- if(f2>=15){ SetGraphicRect(180,70,240,128); }
- f2++;
- }
- if(GetSpeedX()<0){
- SetGraphicAngle(180,0,0);
- if(f2<5){ SetGraphicRect(0,70,60,128); }
- if(f2>=5 && f2<10){ SetGraphicRect(60,70,120,128); }
- if(f2>=10 && f2<15){ SetGraphicRect(120,70,180,128); }
- if(f2>=15){ SetGraphicRect(180,70,240,128); }
- f2++;
- }
- if(attack==true){
- if(f2<10){ SetGraphicRect(stuff)}
- if(f2>=10 && f2<20){ SetGraphicRect(more stuff)}
- if(f2>=20 && f2<30){ SetGraphicRect(more more stuff)}
- f2++;
- }
- DrawGraphic(GetX,GetY);
- f++;
- if(f==40){f=0;}
- }
Advertisement
Add Comment
Please, Sign In to add comment