Bon, maintenant, c´est le saut qui fonctionne pas, mon code complet...
=================================================
onClipEvent(load){
gravity = 1.5;
velocity = 0;
falling = true;
stop();
speed = 7;
}
onClipEvent(enterFrame){
if(falling == true){
velocity += gravity;
_y += velocity;
}
for(i=0;i<99;i++){
if(this.walk.feet.hitTest("_root.platform" + i)) {
platform = eval("_root.platform" + i);
_y = platform._y;
velocity = 0;
falling = false;
}else{
falling = true;
}
}
if(Key.isDown(Key.LEFT)){
this.gotoAndStop(1);
_x -= speed;
}
if(Key.isDown(Key.RIGHT)){
this.gotoAndStop(2);
_x += speed;
}
if(Key.isDown(Key.UP)){
if(falling == false){
velocity -= 20
falling = true
}
}
}
=================================================
Mon personnage ne saute pas en appuyant sur la flèche d´en haut.