Forum Discussion
AnuroDavies
3 months agoCommunity Member
Step by Step on how to create a Snake and ladder puzzle
Hi all. I am working on an assignment on course gamification. I need help with a step-by-step process on how to create a Snake and ladder puzzle on articulate storyline
AnuroDavies
Community Member
Thank you, Alex, for this great tip. This has surely Helped me.
AlexMilyaev-f86
3 months agoCommunity Member
Regarding the animation of the player's token moving across the board, there are 2 implementation options:
- It can be implemented using Storyline animations and triggers. This is a very complex approach. If your game board has a simple shape (all cells are the same size and have simple geometry—like moving 10 cells to the right, then 1 up, then 10 cells to the left, etc.), then you can create 3 movement animations (left, right, and up) and use a complex trigger system to launch these animations. For example: If the die shows 5, we launch the movement animation. At the end of this animation, we decrease the value shown on the die by 1, and if the resulting number is greater than 0, we launch the animation again (the choice of animation—left, right, or up—depends on which cell we are currently on). If the board has a complex shape, then we will need to create separate animations for each step (if you have 30 cells on the board, you need to create 30 animations: how the player moves from cell 1 to cell 2, then from 2 to 3, etc.).
- A simpler way is to use the GSAP library. It is excellent for such cases. This library is designed for animating objects. The logic of the script will be as follows: We create an array of coordinates (in which we specify the X and Y coordinates of all the cells on the game board). Then we get from Storyline the information about where the player is currently standing and what value was rolled on the die. Then we sequentially move the player's token to the coordinates recorded in the array. At the end of the animation, we inform Storyline that the animation is complete, and the next turn can be taken.