Game Development Community

Dynamic and individualized movespeed and jumpforce.

by Chris "Dark" Evans · in Torque Game Engine · 11/29/2001 (4:34 pm) · 4 replies

Anyone interested?

I made a few functions that set a player's maxForwardSpeed, maxBackwardSpeed, and maxSideSpeed. Then it sets the corresponding maxUnderwater speeds.

If you set maxForwardSpeed to 10, then maxUnderwaterForward speed is set to (10 / 2). The same goes for Back, and Side speeds.

To use them:
%player.setMaxFSpeed(10);
%player.setMaxBSpeed(8);
%player.setMaxSSpeed(9);



I also plan to make one that sets a player's jumpforce.

When I get time I'll make some tutorials for these.

Another thing I'm working on is mana support for RPG type games (like mine).


Dark

#1
11/30/2001 (2:35 am)
Nice, everything helps !
#2
02/07/2002 (8:18 pm)
Chris, do you intend to post your code as a resource ?
#3
02/08/2002 (9:18 am)
Where are you using those functions?
#4
02/08/2002 (5:49 pm)
I did post it as a resource. A long time ago.

*Edit: I'm an idiot. When I read the thread I was thinking about the gravity tutorial.

I'll go back through and figure out what I did to make it work. Then if I have time I'll write a tut and post it as a resource.