# Flash board game movement

**URL:** <https://forum.kirupa.com/t/flash-board-game-movement/240154>\
**Category:** Uncategorized\
**Created:** [September 29, 2007, 9:25pm UTC](https://forum.kirupa.com/t/flash-board-game-movement/240154 "2007-09-29T21:25:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kekekiko](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kekekiko](https://forum.kirupa.com/u/kekekiko)\
**Post date:** [September 29, 2007, 9:25pm UTC](https://forum.kirupa.com/t/flash-board-game-movement/240154/1 "2007-09-29T21:25:02Z")

</div>

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!
