Game Development Community

can only lower speed, can't raise it

by Aaron Yashinsky · in Torque Game Engine · 07/09/2009 (2:27 pm) · 1 replies

I've been trying to modify the player's speed to make it go faster. In my trial and error I realized I only could lower the speed and cannot raise it. Is there some sort of speed limit in the code?

#1
07/09/2009 (3:07 pm)
In your player datablock you should be able to adjust it's maximum however you wish it, lower or higher, by changing these fields:
maxForwardSpeed = 14;
maxBackwardSpeed = 13;
maxSideSpeed = 13;

There are few other fields that will affect your movement also.

You may also want to check out this Sprint Button to enable your player to be able to toggle between a walking and running speed. There are several other "scripted" sprinting resources but none of those work well nor do they properly account for multiplayer.