Game Development Community

Airborne runner

by D B · in Torque Game Engine · 02/08/2006 (5:37 pm) · 4 replies

I'm sure a lot of people have had it so when your character runs up a hill, they launch up in the air a little bit. Well, I'm hoping to take that particular attribute away, as I'm making an RPG where there's no jumping on command (though there would be some "events" where the character will hop up or off a ledge), and therefore no way the character should be airborne, but I'm unsure of what I could do to accomplish that.

Does anyone have any suggestion as to what I could do, or where I could look? I'm currently looking through the Player::updateMove, and looking particularly at the runSurface variable.

Thank you in advance.

EDIT: I should also say I'm making use of Daniel Neilsen's sprint resource; I'm guessing part of the problem is I set it so that the player goes much faster than usual.

#1
02/09/2006 (6:32 am)
Increase the gravity (in player.cc)? That's the quickiest way I can think off.
#2
02/09/2006 (10:09 am)
Alright, thanks! That would make a lot of sense! I'll give that a try and post back after. :D
#3
02/09/2006 (11:08 am)
It worked out perfectly. Thanks for your help. :D
#4
03/01/2006 (3:01 pm)
Actually, a new problem has popped up from this; the AI Players seem to fidget in place when the gravity is changed to keep players from lifting off into the air.

I'm wondering they would do this if they're to stay in one place on a flat portion of the level; I can't think of any way the gravity would be pushing them in such a situation.

Could someone offer some advice as to what I could do to fix this?