Forum Discussion
Storyline 360 - Board Game issue
Hi,
The issue is reacting to an intersection while movement is still in progress. Intersections fire during motion, which is why your dice movement gets cancelled.
Instead, track the current board position with variables. Let the piece visually move only after the math is complete. Apply “move forward 2” after dice movement is finished, not while it’s moving
Create these number variables vCurrentPos, vDiceRoll, vTargetPos, vExtraMove and 1 True/False variable vIsMoving. Each square should have a number, not logic tied to its shape. For exampl: Square 5: Move forward 2, etc. You’ll check this after dice movement ends. When user clicks Roll Dice, Set the trigger order as: Set vIsMoving = True, Set vExtraMove = 0, Set vTargetPos = vCurrentPos + vDiceRoll. Now move the piece step-by-step or via a motion-path system based on vTargetPos. After dice movement finishes, check for special square and move if found a special square.
Related Content
- 10 months ago
- 11 months ago