GeekPenguinBR {l Wrote}:hiker {l Wrote}:Note that zipper textures have a min-speed setting, which should be used for jumps. This guarantees that the karts will have (at least) the speed to reach the other sides (otherwise if you play on easy which has a lower speed karts might not reach the other side).
But we note that it's not easy to balance: if my kart has enough speed to reach the other side when I play on the beginners level, the other karts can't; if the other karts have enough speed to reach the other side at beginners level, my kart speed's exceeds the normal and the kart almost flies away.
Not sure if you understood me correctly: the min-speed property of a zipper texture makes sure that any kart (at any level, even if the AI is slower than a player because of the difficulty) will have at least the specified speed.
I recently used this for the smaller jump in Cocoa, and it took me around 5 minutes to find the right speed. Quick instructions: first drive to just in front of the zipper. In the debug menu select 'print start position'. Enter the XML shown on stdout to the scene.xml file of the track and restart (--> you will start immediately in front of the zipper). Add a breakpoint to line 377 of material.hpp ('getZipperMinSpeed()').
Then repeat:
- drive onto the zipper
- breakpoint will be reached
- change m_zipper_min_speed of the material to the value you want to test (e.g. 40)
- deactivate the breakpoint
- keep on driving, and see if you make the jump
- After the jump, activate the breakpoint again
- restart the race (you will start in front of the zipper again)
Keep on trying different values for the speed, till you have found the value that works for you.
As I've said, it too me less than 5 minutes to find a good value (I tried 30, 40, and then a few values around 40m till I was happy with 40).
Once you have a good value, add this value to the material properties (or if you want to test different difficulties: manually add the value to the materials.xml file, restart stk, and test the jump in all difficulties).
Done
Hope that helps!
Joerg