x


How to let player adjust speed of FPC movement

Is there a way the player can control the First Person Controller so that he can increase its speed at will or revert to a slower default? I know how to change the default speed; just wondering if I could allow the player to move faster if he wants to (like, by pressing the up key plus another key). Thanks!

more ▼

asked May 09 '11 at 06:33 PM

violyn gravatar image

violyn
45 5 5 9

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

sure you can. either you use the "run button" way, and simply let the script check if the run button is pressed. if yes, it uses run speed, if no, it uses walk speed. the other way im thinking of is a smooth speed control, like you used to have in the old splinter cell games (controlled by mouse wheel in that case). you could simply check for a button to be pressed and raise the speed value by 1.

more ▼

answered May 09 '11 at 06:46 PM

red 2 gravatar image

red 2
77 1 1 9

Those both sound great, except I'm new to coding and don't know the wording to use on the Character Motor script. Any short lines of code you can suggest? Otherwise, I'll just try to look around some more. Thanks for the suggestions, though.

May 09 '11 at 07:01 PM violyn
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5099
x358
x21

asked: May 09 '11 at 06:33 PM

Seen: 696 times

Last Updated: May 09 '11 at 06:33 PM