how can i keep kart accelerating or modify its speed?

how can i keep kart accelerating or modify its speed?

Postby jazzwong » 31 Mar 2010, 15:10

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
jazzwong
 
Posts: 5
Joined: 31 Mar 2010, 13:44

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

Postby Auria » 31 Mar 2010, 21:13

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)
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

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

Postby jazzwong » 06 Apr 2010, 02:48

thanks
jazzwong
 
Posts: 5
Joined: 31 Mar 2010, 13:44

Who is online

Users browsing this forum: tux_peng and 1 guest