Hello guys,
i need help on a very simple thing.
What i can't do is, there's a movieclip being played and when it comes to a frame i want it to stop and generate a number between 0-5 and keep playing if the number is 3.If it's not 3 it should randomize it again and keep running like that.
Did this but not working.
x = Math.random()*5;
if (x = 3) {
play();
}
gotoAndPlay(1);
Thanks for any help.
i need help on a very simple thing.
What i can't do is, there's a movieclip being played and when it comes to a frame i want it to stop and generate a number between 0-5 and keep playing if the number is 3.If it's not 3 it should randomize it again and keep running like that.
Did this but not working.
x = Math.random()*5;
if (x = 3) {
play();
}
gotoAndPlay(1);
Thanks for any help.