Sliding Down a Wall

Talk about making games.

Sliding Down a Wall

Postby nz17 » 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.
User avatar
nz17
 
Posts: 25
Joined: Wed Oct 08, 2003 8:36 pm
Location: Vernal, UT, USA
Score: 0 Give a positive score

Postby makslane » Tue Nov 04, 2003 2:32 pm

You can try Physical Response, instead ToAnteriorPosition.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Woah

Postby nz17 » Wed Nov 05, 2003 11:00 am

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.
User avatar
nz17
 
Posts: 25
Joined: Wed Oct 08, 2003 8:36 pm
Location: Vernal, UT, USA
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron