PDA

View Full Version : movieclip frame change problems!


MuRkYsLaYeR
08-17-2002, 03:22 AM
Hopefully I can put this in understandable words.

I have a movie clip called "guy" with all the sprites for this game character in it all in a row. the first 15 frames are his still animation, and 16-30 are his walking animation. On frame 15 I have this script:

if (guymode = 0) {
gotoAndPlay(1);
}
if (guymode = 1) {
gotoAndPlay(16);
}

It works great, but when it goes back to a frame...say frame 1, it freezes! I've run into this before in other movies. WHY!?

Jesse
08-17-2002, 06:18 AM
To set a value use '='. to check a value use '==' (double equals):
if (guymode == 1) {

MuRkYsLaYeR
08-17-2002, 03:58 PM
Yes, originally I used the double equals sign, but then it disregarded my script completely and played the movie clip all the way through.

Jesse
08-18-2002, 02:40 AM
Check the paths on your variable, maybe you should be using _root.guymode == 1. See the paths tutorial.