Déaj il faut télécha... euh acheter
flash 8 ou une version antérieure ^^
Ensuite pour le moment sans avoir réglé le but du mur carton pour le plafond et sans avoir fixé une limite de zone a la sourie voial ce que sa donne :
onClipEvent (load){
_root.balle,_x=100;
_root.balle,_y=50;
xspeed=40;
yspeed=40;
rightedge=550;
leftedge=0;
topedge=0;
bottomedge=400;
gravity=1;
drag=0.9;
bounce=1.00001;
rebond=0;
rebond2=0;
rightedge=550;
leftedge=0;
topedge=0;
bottomedge=400;
}
onClipEvent (enterFrame){
if(!dragging){
yspeed = yspeed*drag+gravity;
xspeed = xspeed*drag;
setProperty(_root.balle,_x,getProperty(_root.balle
,_x)+xspeed);
setProperty(_root.balle,_y,getProperty(_root.balle
,_y)+yspeed);
if(_root.balle.hitTest(_root.bas)){
yspeed = 0;
xspeed = 0;
_root.balle,_x=100;
_root.balle,_y=50;
if (rebond2>rebond)
{rebond2=rebond2;}
else
{rebond2=rebond;}
_root.score2 = "Votre meilleur score est de : " + rebond2 + " rebonds !" ;
rebond = 0;
}
if(_root.balle.hitTest(_root.haut)){
_root.balle,_y=10;
yspeed = -yspeed*bounce;
rebond = rebond+1;
}
if(_root.balle.hitTest(_root.droite)){
_root.balle,_x=470;
xspeed = -xspeed*bounce;
rebond = rebond+1;
}
if(_root.balle.hitTest(_root.gauche)){
_root.balle,_x=10;
xspeed = -xspeed*bounce;
rebond = rebond+1;
}
if(_root.balle,_x>475){
_root.balle,_x=470;
}
if(_root.balle,_x<5){
_root.balle,_x=5;
}
}
else {
xspeed=_x-oldx;
yspeed=_y-oldy;
oldx=_x;
oldy=_y;
}
_root.score = "Vous avez fait " + rebond + " rebonds sans toucher le sol !" ;
}
La tu as 90% de la prog mais a coté ya dotre truc comme metttre les objects des mini prog dans les object... etc...