I am planning to make a snake and ladder program with a hundred houses. For the object, I have planned to move to the right, left and up by one house(animations..direction=none.....relative start point). Depending on the number that each dice brings, this movement in one house will turn into a movement in several houses. Because the adjustment of these movements is manual, if it deviates slightly up or down, after ten or twenty movements, the amount of this deviation will increase and the nut will come out of its house. How can you be sure that the movement adjustment is the same amount to the left as it is to the right, so that the imbalance does not cause a large amount of deviation after ten or twenty moves?
You can also set ups a relative path for each direction for 1 pixel and then whenever the dice rolls create a loop function to repeat the path until the number is reached.
Hello and thanks. My problem is that in snake and ladder, when the piece hits the snake or ladder and moves to another house, from then on, the order is disturbed and it does not go to the corresponding house with the dice we bring. it will fall apart.
I am not sure the board is distributed vertically and horizontally, it should be simple to create the paths, if you get up and down working as relative paths and I would set the ladders and snakes as normal paths so they align directly with centres. There is often a 1 pixel drift, I often use a non relative path to fix the drift.
Thanks for sharing a copy of your project file. I took a look at it and saw that the endpoints of some of the animations weren't directly centered, which might explain the deviation your objects are experiencing.
It might take some trial and error to correct, but you'll want to make sure that the game piece lands dead center on the squares each time, otherwise the position of the object will start to deviate the more it moves up the board.
Hello and thank you. I have drawn the houses crookedly, but even if I draw regularly, this deviation occurs, even if you make these settings, deviation occurs The smallest deviation will become a large amount after a hundred houses.These deviations can be neglected in snake and ladders with few houses and large dimensions of the houses, but in snake and ladders with many houses and small size, these deviations appear soon.Note that in the snake and ladder of a hundred houses, due to the existence of the snake, the player may travel a thousand houses to reach the last house. solution can be to set the x and y of the bead in each house, which is a difficult task and I don't know the javascript code for setting the x and y of an object.Another way is to use states, which can no longer see the gentle and soft movement , and the movement is instantaneous and jerky.
At first, I used a table of ten by ten houses,but the problem still remains. Then I made a square and copied and pasted it and made other squares and put them together, but the problem still remains and I had to put the squares a little crooked, but the problem still remains.
Do you mean alignment?When you use a ten by ten table, all the houses are aligned.I have seen many examples of snakes and ladders, but the number of houses was few.
I will have a look when I get back in, I think your gap between each square is different. You can test by selecting a row and distributing horizontally if the move they are wrong
16 Replies
You can use the Size and Position dialog for a motion path to precisely set its parameters.
This post was removed by the author
Hi thanks
You can also set ups a relative path for each direction for 1 pixel and then whenever the dice rolls create a loop function to repeat the path until the number is reached.
Hello and thanks. My problem is that in snake and ladder, when the piece hits the snake or ladder and moves to another house, from then on, the order is disturbed and it does not go to the corresponding house with the dice we bring. it will fall apart.
I am not sure the board is distributed vertically and horizontally, it should be simple to create the paths, if you get up and down working as relative paths and I would set the ladders and snakes as normal paths so they align directly with centres. There is often a 1 pixel drift, I often use a non relative path to fix the drift.
Hello, thanks.I have sent you my project, please review it and provide the necessary guidance. Thank you
Hi Mah,
Thanks for sharing a copy of your project file. I took a look at it and saw that the endpoints of some of the animations weren't directly centered, which might explain the deviation your objects are experiencing.
It might take some trial and error to correct, but you'll want to make sure that the game piece lands dead center on the squares each time, otherwise the position of the object will start to deviate the more it moves up the board.
Hello and thank you. I have drawn the houses crookedly, but even if I draw regularly, this deviation occurs, even if you make these settings, deviation occurs The smallest deviation will become a large amount after a hundred houses.These deviations can be neglected in snake and ladders with few houses and large dimensions of the houses, but in snake and ladders with many houses and small size, these deviations appear soon.Note that in the snake and ladder of a hundred houses, due to the existence of the snake, the player may travel a thousand houses to reach the last house. solution can be to set the x and y of the bead in each house, which is a difficult task and I don't know the javascript code for setting the x and y of an object.Another way is to use states, which can no longer see the gentle and soft movement , and the movement is instantaneous and jerky.
Some of it will be the distribution of the boxes I don’t think the are equal the gap should ideally be the same which will make it much easier.
Sent from my iPhone
At first, I used a table of ten by ten houses,but the problem still remains. Then I made a square and copied and pasted it and made other squares and put them together, but the problem still remains and I had to put the squares a little crooked, but the problem still remains.
Have you used the distribution tools?
Sent from my iPhone
Do you mean alignment?When you use a ten by ten table, all the houses are aligned.I have seen many examples of snakes and ladders, but the number of houses was few.
https://community.articulate.com/discussions/articulate-storyline/motion-paths-moving
https://community.articulate.com/discussions/articulate-storyline/snakes-and-ladders-what-happens-when-you-go-up-a-ladder-or-down-a-snake
Yes as I have been saying I don’t think they are equally distributed rotation will not affect the centre point
Sent from my iPhone
When you use a ten by ten table, all the houses are aligned
I will have a look when I get back in, I think your gap between each square is different. You can test by selecting a row and distributing horizontally if the move they are wrong
Sent from my iPhone
thanks.
This post was removed by the author
This post was removed by the author