Forum Discussion
adjusting the amount of animations (motion path) to left or right percisely not manually?
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.
- mahbag-e8b66d7e3 years agoCommunity Member
Hello, thanks.I have sent you my project, please review it and provide the necessary guidance. Thank you
- JoseTansengco3 years agoStaff
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.
- mahbag-e8b66d7e3 years agoCommunity Member
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.
Related Content
- 8 months ago
- 10 months ago
- 18 days ago