actionscript 3 help slope detection

Miscellaneous Forums/General Discussion/actionscript 3 help slope detection

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

hi all, so ive been trying to figure out how to make a platform game in flash with slopes. ive been trying to understand how to make the character rotate depending on what the angle of the ground beneath it is.ive found this method where you place to invisible points on the bottom left a right of the character image. next you check if they are intersecting with the ground or not. if they are you rotate the character to stop them from intersecting. i understand this method, but i just have no idea how to code it. anyone have some ideas? any help is welcome.

here is what i mean