"Walls" and friction

BRGKeenBRGKeen Member Posts: 40
edited November -1 in Working with GS (Mac)
This is really starting to mess with sanity.

I have walls created. However, I hit them and my main actor slides off of them, off the screen, forever. I need the actor to hit the wall and STILL BE ABLE TO MOVE (hence not needing friction) yet be capable of reaching an X or Y coordinate.

Colliding with the wall is a must. I must have walls because I must contain my actor within an area when an attribute "move" is 1. That attribute "move" is 1 when an invisible actor that is the size of the screen recieves a touch. My main actor then 'moves to' the X and Y coordinates of the touch. This method of movement must have walls because without them the actor will be able to move out of the region I want if the player touches again while the main actor is still moving (Move = 1 and he'll jump to the X/Y coords and ignore rules).

-HOWEVER-

If there are walls blocking him I need him to still be able to move while touching them. The second he hits the walls he slides out of control. Friction set to 99999999 solves this, but then he can't move at all if he touches a wall. Anything lower and he still goes out of control.

How can I get the collision I desire? I just want him to collide and not pass through yet not be impacted by friction.
Sign In or Register to comment.