Posted By
|
Message
|
W3R3W00F Drum and Bass Fueled Psycho
Registered 08/11/2008
Points 374
|
18th February, 2009 at 02:56:12 -
I want it so that when my character goes up or down a slope, he changes his angle, rather than just falling down like badly programmed stairs. >< Anyways, I'm just asking how it would be done.
An old and washed up once-kid
|
-MacAdaM- Megaman Fosho
Registered 12/02/2008
Points 560
|
18th February, 2009 at 03:03:03 -
Probably have detectors in the ground, and when they are on a slope just change the angle.
Your just jealous that you're not as awesome as me.
(And my megaman avatar )
|
UrbanMonk BRING BACK MITCH
Registered 07/07/2008
Points 49667
|
18th February, 2009 at 04:40:44 -
Here is a simple way to do it. Its not exact though, if you want to be exact you'll have to use trig functions.
If your engine doesn't require anything complex, and the slopes aren't extreme, this'll work
http://www.jsoftgames.com/slopeangleengine.zip
n/a
|
|
|