Game Development Community

Chapter 5 -- player running problem

by Eddie Lau · in Torque Game Engine · 05/27/2005 (12:39 am) · 1 replies

Hi, Finally got Chapter 5 to compile and run!!
But the player runnning animation seems to to be a bit off.
The player avatar keeps running for a couple of seconds even after i let go the up arrow.
i copied over the player.cs datablock values from starter.fps, such as

mass = 90;
density = 10;
drag = 0.3;
maxdrag = 0.4;
maxForwardSpeed = 8;
maxBackwardSpeed = 5;
maxSideSpeed = 12;
minJumpSpeed = 20;
maxJumpSpeed = 30;
runForce = 48 * 90;
jumpForce = 8.3 * 90;;
runSurfaceAngle = 40;
jumpSurfaceAngle = 30;

But it doesnt seem to help!!

Can anyone help me??

TIA

About the author

Recent Threads

  • Compiling .exe

  • #1
    06/20/2005 (9:21 pm)
    Curious, did your avatar work properly in emaga4? I'd reference those files for differences. Does your avatar display this behaviour on all surfaces or exclusively on hills?

    There are some differences in the emaga4 player.cs file than the ones you listed, so that could be beneficial to review.

    Notably,

    mass = 90;
    drag = 0.1;

    Edit: After successfully running emaga5 (who would have thought it was a problem in a .gui file holding me back!) I see what you mean. If you get on a flat piece of land and hold the run key you'll go on for a good 20 seconds after you let go. Whatever is causing this sounds like it'll be fun to toy around with when implemented in the proper game. Heh.