I'm trying to create a game in flash AS2. One of the code is not working. When a button is pressed: if the x of the object1 = 56.2 and y=158.6 , we should move to the next frame if not we should move to frame number 3. Wherever the object1 is, we always move to frame 3:
on (press) {
if (object1._x==56.2 && object1._y==158.6) {
gotoAndPlay(2);
}
else {
gotoAndPlay(3);
}
}
plzz help!!
Aucun commentaire:
Enregistrer un commentaire