beuleal Posted August 20, 2015 Share Posted August 20, 2015 Hi guys, Im looking for coding tips 8, and i found a bug (i guess). As long is the path, more fast the sprites goes. I belive that it is not a good method. If i want to work with real physic (big path, more time spent / short path, less time spent), and im not having sucess What should i do? http://www.photonstorm.com/phaser/phaser-coding-tips-8 Link to comment Share on other sites More sharing options...
crispy Posted August 20, 2015 Share Posted August 20, 2015 I think the idea is that you travel through the points at equal intervals of time. So, for example, one red dot per second. This is actually nice, because it means that you can control the speed by placing more or less of the red dots. (If it were modified as you suggest, so that it always travels at the same speed, you'd have no way to control the speed, which some people might want to do.) But whether it's nice or not... it works the way it does simply because that's how the math works out. :-) Cheers! Link to comment Share on other sites More sharing options...
wayfinder Posted August 20, 2015 Share Posted August 20, 2015 You could check the overall length of the spline, and each segment's length in relation, and scale the density of the points in between accordingly Link to comment Share on other sites More sharing options...
Recommended Posts