Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let counter1=0;
- let counter2=0;
- let counter3=0;
- let graphicangle=0;
- let wave=0;
- let turnframe1=0;
- let turnframe2=0;
- @DrawLoop{
- //Fairy Graphic
- SetTexture(fairygraphic);
- SetGraphicScale(1,1);
- SetAlpha(255);
- if(GetSpeedX>0 && counter1==0){
- Animate("fairy","turntomove",false);
- graphicangle=0;
- counter1++;
- counter2=0;
- counter3=1;
- turnframe1=0;
- turnframe2=0;}
- if(GetSpeedX<0 && counter2==0){
- Animate("fairy","turntomove",false);
- graphicangle=180;
- counter2++;
- counter1=0;
- counter3=1;
- turnframe1=0;
- turnframe2=0;}
- if(GetSpeedX==0 && counter3==0){
- Animate("fairy","idle",true);
- counter3=10;
- counter2=0;
- counter1=0;
- turnframe1=0;
- turnframe2=0;}
- if(GetSpeedX!=0 && turnframe1<12){
- turnframe1++;
- }
- if(GetSpeedX==0 && counter3==1 && turnframe2<12){
- turnframe2++;
- }
- if(turnframe1>10){
- if(counter1==1){
- Animate("fairy","move",true);
- counter1++;}
- if(counter2==1){
- Animate("fairy","move",true);
- counter2++;}
- }
- if(turnframe2>1 && counter3==1){
- Animate("fairy","turntoidle",false);
- counter3++;}
- if(turnframe2>10 && counter3==2){
- counter3=0;}
- SetColor(255,255,255);
- SetGraphicAngle(graphicangle,0,0);
- DrawAnimatedSprite("fairy", GetX, GetY);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement