wall sliding effect

Talk about making games.

wall sliding effect

Postby Kooldudese » Wed Jan 30, 2008 1:46 am

i want to know how to make a game where there are two sides (they are invisible actors and they have a physical responce) so... when you walk against it... you cant walk past it. the glitch that happens here is that if you jump, and hold the side that your against (right if your on the right wall and left if your on the left wall) you will stay in mid-air. the thing i need to do is so that when you hold that button against the wall, you slide down, slowly.( and also at the same time change the player animation). if you can please post demos, or if it is simple enough you can just paste the code, or just tell me how to do this...

Thx for the help in advance.
User avatar
Kooldudese
 
Posts: 128
Joined: Sat Jan 27, 2007 5:20 pm
Location: In a house
Score: 0 Give a positive score

Re: wall sliding effect

Postby Kalladdolf » Wed Jan 30, 2008 5:12 pm

I have an old sliding demo, maybe that'll help.
slope.zip
xD
(4.47 KiB) Downloaded 93 times
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: wall sliding effect

Postby Kooldudese » Thu Jan 31, 2008 8:46 pm

ill try this, and if it works, ill reply... the demo doesent really have to do with what i wanted but... ill see if i can make it suit what i need... (thx!) :lol:
User avatar
Kooldudese
 
Posts: 128
Joined: Sat Jan 27, 2007 5:20 pm
Location: In a house
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron