Help with Diagonal Walls

I wrote this some time ago. Nobody answered me. I have an actor that mover over floors (like a platformer) but how can I make it so that he can go up those diagonal walls and to make him rotate so that he is allways standing on the wall.
Comments
that should make your character rotate to the same angle as the diagonal wall/floor.
As for how make him go up the wall/floor, someone else can probably answer that better than me...(I've not yet made a platform genre game yet)
and sometimes, the movable actor just starts rotating randomly.
please help
Hope this helps!