hoping this is an easy one for someone…
have used flashvalley’s dice component and am able to move counter to next frame if dice lands on one but how can I get counter to move forward 6 frames if it rolls a 6?
code is as follows:
function showResult(de_instance){
// result represents the text field variable that will receive the value of rollValue
_root.result = de_instance.rollValue;
if (_root.result == 1) {
_root.ball.nextFrame();
}
}
the function is called when the dice is rolled.
I don’t want to go to frame 6 if it rolls a 6 rather the next 6 frames from where the counter (ball) currently is.
hoping someone can help, like I say, I’m sure it’s easy but I can’t figure it!