Wall sticking

Talk about making games.

Wall sticking

Postby Snowfly » Tue Sep 13, 2005 9:49 am

When I create a character using the steps in the gravity tutorial, pressing him against a wall mid-jump causes him to stick until you let go off the direction button (left or right in this case).

This also happens in the Abuse demo. Does anyone have a quick workaround?

One way I found was to set the left/right physical reaction to 1.0 to make an actor slide down the wall at his gravity rate. But it only seems to work appropriately with perfectly vertical walls.
Snowfly
 
Posts: 14
Joined: Sat Sep 10, 2005 3:47 am
Score: 0 Give a positive score

Postby Game A Gogo » Tue Sep 13, 2005 7:58 pm

maybe this: do a Var called: Walk when 1=walk 0=canot walk, so do a key down event:

Left:
Code: Select all
if (Walk==1)
[
x=x-1;
]


Right:
Code: Select all
if (walk==1)
[
x=x+1;
]


and on "left or right side" for the colision of the platform, do:
Code: Select all
walk=0;
and "top or down side" colision of the platform:
Code: Select all
walk==1;


this will(if im right) do:
when the Player walk in the air(jumping) when he colide left or right side of platform, he will fall whitout mouving, like he was unconsious when hiting the wall.

hope it work 8)
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest