Bin enfait j'ai fait un cadre pour délémiter un espace (rien de spécial)
et je voudrai que quand le rond arrive dans ce carré alors l'animation aille a une autre image
voiçi mon code entier :
onClipEvent(KeyDown) {
if (Key.getCode() == Key.UP) { haut = 1 }
if (Key.getCode() == Key.DOWN) { bas = 1 }
if (Key.getCode() == Key.LEFT) { gauche = 1 }
if (Key.getCode() == Key.RIGHT) { droite = 1 }
if (haut == 1) { this._y -= 8 }
if (bas == 1) { this._y += 8 }
if (gauche == 1) { this._x -= 8 }
if (droite == 1) { this._x += 8 }
}
onClipEvent(KeyUp) {
if (Key.getCode() == Key.UP) { haut = 0 }
if (Key.getCode() == Key.DOWN) { bas = 0 }
if (Key.getCode() == Key.LEFT) { gauche = 0 }
if (Key.getCode() == Key.RIGHT) { droite = 0 }
}
onClipEvent(enterFrame) {
if (this._y <0) { this._y = 400 }
if (this._y >400) { this._y = 0 }
if (this._x <0) { this._x = 550 }
if (this._x >550) { this._x = 0 }
if (this._x >228 && this._x <256 && this._y >131 && this._y <159 { gotoAndPlay(10) }
}
Voila je sais pas si tu vois se que je veux faire
j'espère...

Bl@cknight91Titi
