32Fermer34
TonmaLe 19/04/2020 à 14:54
Sorry, I didn't understand that for the breast only animation.

It's already animated automatically. You can see that with the Animator software. "Playback Loop". So the aSpriteSetStep is not useful.

The new code :
pictureSetPos(&Cursor,curs_x,curs_y); if(miniGame==1) { if(controlON==1) { if((curs_x>104)&&(curs_y>96)) { if((curs_x<208)&&(curs_y>136)) { // aSpriteAnimate(&sp5); // if(frame%10==3) boobs(); // aSpriteSetStep(&sp5, breast_frame); // if(breast_frame<5) breast_frame++; // else breast_frame=0; if(frame==55) score++; aSpriteAnimate(&sp5); } } } // aSpriteSetStep(&sp1, eyes1_frame); // aSpriteSetStep(&sp2, eyes2_frame); // aSpriteSetStep(&sp3, lips_frame); // aSpriteSetStep(&sp4, hand_frame); aSpriteAnimate(&sp1); aSpriteAnimate(&sp2); aSpriteAnimate(&sp3); aSpriteAnimate(&sp4); if((min==0)&&(sec==0)&&(frame==0)) { miniGame=2; clearSprites(25,60); if(score>=21) choice=0; if(score<=15) choice=1; if((score>15)&&(score<21)) choice=2; action++; } }