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
here is what i mean