Page 1 of 1

Sliding Down a Wall

PostPosted: Tue Nov 04, 2003 4:49 am
by nz17
:? 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.

PostPosted: Tue Nov 04, 2003 2:32 pm
by makslane
You can try Physical Response, instead ToAnteriorPosition.

Woah

PostPosted: Wed Nov 05, 2003 11:00 am
by nz17
8) As per your suggestion, I started playing around with the Physical Response, though in the past I had been cautious about doing so.

Wow, I could not believe I had been avoiding such a useful function, simply because I did not understand it! It produces incredible effects! Thank you for programming it.