Sliding Down a Wall
Posted: Tue Nov 04, 2003 4:49 am
Any GE programmers out there, I would appreciate your help.
I am trying to get the main character in my game to slide down a wall when he jumps at it using the ToAnteriorPosition function. However, even though gravity is pulling down the character, he is stuck on the wall until the key to move him is released. He then falls as appropriate to the amount of gravity, i.e. yvelocity, that he has accumulated while on the wall.
The only way I have found around this is to move the character back a small amount from the side of the wall everytime he connects, but that makes a shaking effect I would rather avoid.
Thanks in advance.
I am trying to get the main character in my game to slide down a wall when he jumps at it using the ToAnteriorPosition function. However, even though gravity is pulling down the character, he is stuck on the wall until the key to move him is released. He then falls as appropriate to the amount of gravity, i.e. yvelocity, that he has accumulated while on the wall.
The only way I have found around this is to move the character back a small amount from the side of the wall everytime he connects, but that makes a shaking effect I would rather avoid.
Thanks in advance.