Pages: 1
Topic closed
I've already found a way to get a vehicle to accelerate, but how do you get it to not speed up any faster than a certain speed? I'm using scrolling, so how do you do that?
Offline
Put the script that increases acceleration inside this:
if <(acceleration) < [max speed]> <do stuff> end
Last edited by Greenatic (2012-02-04 16:40:04)
Offline
if <accelerating?> if <(acceleration) < (max speed)> change [acceleration v] by ((acceleration) * (any number)) end else change [acceleration v] by (((acceleration) * (any number)) * (-1)) endI fixed it and added to it.
Last edited by rdococ (2012-02-04 16:50:42)
Offline
I've got it to work, somewhat. At least the vehicle won't accelerate past a certain speed (instead of accelerating to a max speed of 20, it accelerates to a max speed of 22).
Offline
haloman298 wrote:
I've got it to work, somewhat. At least the vehicle won't accelerate past a certain speed (instead of accelerating to a max speed of 20, it accelerates to a max speed of 22).
What script did you use? Also, is there another script that could be affecting the acceleration?
Offline
I'm rather confused about what you are asking and the responses you've received. Why not just stick this into the loop that deals with velocities?
if <(speed) > (10)> set [speed] to (10) end
Last edited by MoreGamesNow (2012-02-04 17:35:56)
Offline
Topic closed
Pages: 1