Page 1 of 1

how can i keep kart accelerating or modify its speed?

PostPosted: 31 Mar 2010, 15:10
by jazzwong
hi,
I hope that when pressdown "KEY_UP" without release it, the kart would keep accelerating, like 'Need For Speed'.

so, I made some changes in file "input_manager.cpp" :
:!: line:288 ..: void Inputmanger::dispatchInput(, , , , int value)
:!: line:396 ..: ((PlayerController*)pk->getController())-> action(action, abs(value));
//--> ((PlayerController*)pk->getController())-> action(action, abs(value)*5);
// but it is not faster than before when press "KEY_UP".
I also made some changes in file "player_controller.cpp"
:!: line:116 ..:void playerController::action(, int value)
// it does not work either.

did I find the right function? if not, someone could give me some sugguestion?
(emai: wangjun0125@gmail.com)
Thanks for your help.

I have download the STK with SVN(vesion:5075), I like it very much,great thanks to the author :) :)

Jzw

Re: how can i keep kart accelerating or modify its speed?

PostPosted: 31 Mar 2010, 21:13
by Auria
Hi,

I'm afraid i don't understand what you mean. When the "accelerate" key is held down, the kart does keep on accelerating (until you release the key or reach maximum speed)

Re: how can i keep kart accelerating or modify its speed?

PostPosted: 06 Apr 2010, 02:48
by jazzwong
thanks