God, this shouldn't be this hard!
I am trying to loop a few frames over and over until a counter equals a certain number. And instead of reaching the set number and moving on, I'm stuck in an infinate loop.
What am I doing wrong here?
// Set Variable
shake = 0;
//Raise count by 1
var shake = +1; ((also, this frame has the "play" label))
//Loop until X
if (shake = 3) {
gotoAndPlay("after shake");
} else {
gotoAndPlay("play");
}
I've tried everything I can think of...
I am trying to loop a few frames over and over until a counter equals a certain number. And instead of reaching the set number and moving on, I'm stuck in an infinate loop.
What am I doing wrong here?
// Set Variable
shake = 0;
//Raise count by 1
var shake = +1; ((also, this frame has the "play" label))
//Loop until X
if (shake = 3) {
gotoAndPlay("after shake");
} else {
gotoAndPlay("play");
}
I've tried everything I can think of...