Slowing down the player movement?
by Edward Smith · in Torque Game Engine · 09/16/2003 (3:45 am) · 8 replies
Is it possible, to slow down a player?
Because I want to be able to slow down the player as I Zoom.
Thanks.
P.S. If this is a double post I'm sorry, but I can't find the post I made last night? I was tried so maybe I was dreaming?
Because I want to be able to slow down the player as I Zoom.
Thanks.
P.S. If this is a double post I'm sorry, but I can't find the post I made last night? I was tried so maybe I was dreaming?
About the author
Games have always been a huge part of my life. I've always enjoy military games such as SEAL Team and Delta Force. Large open areas, an objective and your choice to deal with it. Or the choices in Deus Ex, that is what games should be about.
#2
so for example, while running:
maxForwardSpeed = 8;
maxBackwardSpeed = 6;
maxSideSpeed = 7;
but when Zoomed:
maxForwardSpeed = 4;
maxBackwardSpeed = 3;
maxSideSpeed = 3.5;
I'm guessing that onTrigger, will do it? but I haven't been able to get any slow downs.
09/16/2003 (4:00 am)
I don't know if i get you, or if you get me, but i mean to change the speed of the player on the fly?so for example, while running:
maxForwardSpeed = 8;
maxBackwardSpeed = 6;
maxSideSpeed = 7;
but when Zoomed:
maxForwardSpeed = 4;
maxBackwardSpeed = 3;
maxSideSpeed = 3.5;
I'm guessing that onTrigger, will do it? but I haven't been able to get any slow downs.
#3
Is only for fire, jump, etc... no forward etc, or the second mouse button.
Is there a better function to use somewhere?
Or would I have go in to the engine and make a function which returns the movements of walking as well? That seems abit much to me for something like this.
Any ideas most welcome.
** I'm really stuck now... has anyone done this?
09/16/2003 (4:32 am)
Ok the Armour::OnTrigger(...)Is only for fire, jump, etc... no forward etc, or the second mouse button.
Is there a better function to use somewhere?
Or would I have go in to the engine and make a function which returns the movements of walking as well? That seems abit much to me for something like this.
Any ideas most welcome.
** I'm really stuck now... has anyone done this?
#4
09/16/2003 (8:54 am)
Only way I found to manipulate the max/min speeds of a player on a player by player basis were to adjust it in the C++ code since the datablocks affect EVERYONE.
#5
09/16/2003 (11:21 pm)
Good point it would.
#6
Make a player set with normal max speeds, then a second datablock with the faster speeds.
Then make a function to set the datablock to the faster armor when its time to use your "Zoom" then switch them back to the normal armor.
09/29/2003 (11:52 pm)
You can do this in scripting as well, not as pretty but something to work with until you can find another solution.Make a player set with normal max speeds, then a second datablock with the faster speeds.
Then make a function to set the datablock to the faster armor when its time to use your "Zoom" then switch them back to the normal armor.
#7
why not just make a function that sets the speed in C++ that is what I did, very clean.
09/30/2003 (1:35 am)
Quote:Make a player set with normal max speeds, then a second datablock with the faster speeds.
why not just make a function that sets the speed in C++ that is what I did, very clean.
#8
10/01/2003 (2:21 am)
Wouldn't a better idea be to put in a scaling value in so that the movement rate is still based on the datablock's max/min move rates?
Torque Owner Ryan Zec