The Daily Click ::. Forums ::. Klik Coding Help ::. Angle change
 

Post Reply  Post Oekaki 
 

Posted By Message

W3R3W00F

Drum and Bass Fueled Psycho

Registered
  08/11/2008
Points
  374

VIP MemberCardboard BoxThe Cake is a Lie
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

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
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
   

Post Reply



 



Advertisement

Worth A Click