30Fermer32
TonmaLe 19/04/2020 à 09:53
I move your cursor to foreground to see the hand (pictureInit(&Cursor, &Cur,56,34,curs_x,curs_y,FLIP_NONE)wink and change the function for the position. You use aSpritesetpos but it's a picture.

In your code miniGame always be 1 after init because you push miniGame=1;

You need to change animation inside your if(controlON==1) and you need to change the frame of the breast. You need to add the variable int breast_frame=0; after your define too.

fixPrintf1(1,5,7,3,"%d:",min); fixPrintf1(3,5,7,3,"%d",sec); 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++; aSpriteSetStep(&sp1, eyes1_frame); aSpriteSetStep(&sp2, eyes2_frame); aSpriteSetStep(&sp3, lips_frame); aSpriteSetStep(&sp4, hand_frame); aSpriteAnimate(&sp1); aSpriteAnimate(&sp2); aSpriteAnimate(&sp3); aSpriteAnimate(&sp4); aSpriteAnimate(&sp5); } } } 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++; } }
tromb Fichier joint : main.c