Monday, April 26, 2010

side of wall

I thought of something i could do to fix the side wall problem. I could make a surface just infront of the side of the other one so that if my player hits the new rect, his y velocity will cause him to fall down instead of keep going up through the wall.

I do realize that there might be a problem then if he were to land on to of the new surface, so i'm going to make its hight on the top and bottom a bit less than the floor height, but make the width only a fraction greater, so it doesn't stick out too much.

No comments:

Post a Comment