Ferret
06-27-2007, 08:00 PM
I've got a huge problem. I'm making a board game and the board is too big for one frame. So I broke it up into 5 different frames. I tested the first two to do this: When one guy has moved from the first frame to second, it needs to go back to the next guy who needs to move in frame 1. So when it switches back to frame 1, it has to remove the movie clip of the guy in the second frame and re-attach the guy in the first frame to the stage (I'm using attachMovie() by the way for all the characters). So I did this:
if (players[turnorder[turn].fert].ferret == "doodles") {
burt = "HOOPDEEDOOP";
//that burt thing is just a debug check, ignore it.
attachMovie("Ferrets_Doodles", "doodles", 30);
if (eval(sqh) != 5) {
doodles._x = board[eval(sqh)].x;
doodles._y = board[eval(sqh)].y;
} else {
doodles._x = 280;
doodles._y = 51;
}
}
The game is complicated, but here's what's happening.
I made a dynamic box and burt did indeed change to "hoopdeedoop", so it's reading the code. The rest works fine. But I have 3 other characters around him, and I put 5 depth difference between them (like freddy is 35, doodles is 30, bonnie is 40, and lily is 45). But doodles and lily sometimes never appear, it never attaches their movie clips. I have the exact same code for all four ferrets. And it's only sometimes. I'm guessing they're disappearing because they don't have enough depth between them. Or maybe it's because i have this code to attach it THEN I go to frame 1. Can anyone help me? :confused:
Thx in advance!
if (players[turnorder[turn].fert].ferret == "doodles") {
burt = "HOOPDEEDOOP";
//that burt thing is just a debug check, ignore it.
attachMovie("Ferrets_Doodles", "doodles", 30);
if (eval(sqh) != 5) {
doodles._x = board[eval(sqh)].x;
doodles._y = board[eval(sqh)].y;
} else {
doodles._x = 280;
doodles._y = 51;
}
}
The game is complicated, but here's what's happening.
I made a dynamic box and burt did indeed change to "hoopdeedoop", so it's reading the code. The rest works fine. But I have 3 other characters around him, and I put 5 depth difference between them (like freddy is 35, doodles is 30, bonnie is 40, and lily is 45). But doodles and lily sometimes never appear, it never attaches their movie clips. I have the exact same code for all four ferrets. And it's only sometimes. I'm guessing they're disappearing because they don't have enough depth between them. Or maybe it's because i have this code to attach it THEN I go to frame 1. Can anyone help me? :confused:
Thx in advance!